amplify-hosting
amplify-hosting copied to clipboard
Storage headless is missing the following inputParams tables, region
Before opening, please confirm:
- [X] I have checked to see if my question is addressed in the FAQ.
- [X] I have searched for duplicate or closed issues.
- [X] I have read the guide for submitting bug reports.
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
Describe the bug
2021-04-28T13:44:54.867Z [WARNING]: ✖ There was an error initializing your environment. 2021-04-28T13:44:54.870Z [INFO]: [31mFailed to pull the backend.[39m 2021-04-28T13:44:54.871Z [INFO]: [31mstorage headless is missing the following inputParams tables, region[39m 2021-04-28T13:44:54.875Z [INFO]: [0mError: storage headless is missing the following inputParams tables, region[0m
I have tried playing with environment variables as seen in other posts, however that doesn't change anything.
Expected behavior
Expected build to occur successfully.
Reproduction steps
- amplify add storage
- amplify add api
- amplify push
- Commit project to repo for Automatic build
- build fails
Build Settings
version: 1
backend:
phases:
build:
commands:
- '# Execute Amplify CLI with the helper script'
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
- yarn install
build:
commands:
- yarn run build
artifacts:
baseDirectory: build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
Additional information
No response
Hi :wave:, thanks for opening! While we look into this...
If this issue is related to custom domains, be sure to check the custom domains troubleshooting guide to see if that helps. Also, there is a more general troubleshooting FAQ that may be helpful for other questions.
I just ran into the same error. My config is a little different, but in case it helps someone else, this solution appears to be working for me:
Add the following environment variables to Amplify App Settings: AMPLIFY_STORAGE_BUCKET_NAME AMPLIFY_STORAGE_REGION
Values for both are just plain strings, eg. my-bucket-name, us-east-1.