Closed iOrcohen closed 2 years ago
Hi @iOrcohen 👋 thank you for raising this issue. It seems this has to do with the Amplify CLI rather than the Amplify JS library so I will transfer this over to that repo for better support.
I don't understand - can you provide more detailed reproduction steps?
This is what I tried:
npx create-react-app test-app
cd test-app
amplify init # choose defaults
amplify add api # choose defaults
amplify push
The result is an api endpoint that results in an api using apiKey
auth
Closing due to a lack of followup, but we can revisit this issue if needed.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
REST API
Amplify Categories
auth, api
Environment information
Describe the bug
After upgrading to Amplify version 7 or later, we cannot use api-key auth in our Api Gateway.
Before the update we used to edit the
cloudformation-template.json
to set the authorization type of two of our endpoints to use apiKey.After the update the
cloudformation-template.json
is not editable anymore, and everything rely on thecli-inputs.json
file which is generating the cloudformation during a push.Now, even if we will set the apiKey in the console, every time we will do a change in the api it will override it and will break our app.
Expected behavior
Being able to set api key auth in the
cli-inputs.json
of the Api Gateway.Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response