amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

Storage headless is missing the following inputParams tables, region

Open samgates3 opened this issue 4 years ago • 2 comments

Before opening, please confirm:

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

  1. amplify add storage
  2. amplify add api
  3. amplify push
  4. Commit project to repo for Automatic build
  5. 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

samgates3 avatar Apr 28 '21 14:04 samgates3

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.

github-actions[bot] avatar Apr 28 '21 14:04 github-actions[bot]

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.

dwarner5 avatar Sep 14 '22 13:09 dwarner5