The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
Hello @James1218, apologies for the delay in a response. Thank you for notifying us.
I was able to replicate this in my Amplify application, hence marking this as a bug.
Before opening, please confirm:
How did you install the Amplify CLI?
No response
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
7.6.22
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Amplify Categories
api
Amplify Commands
codegen
Describe the bug
The postAuth template name is wrong when using
@index
secondary index. See screenshotExpected behavior
The postAuth request template should be "xxxxxx.postAuth.1.req.vtl", but the generated postAuth request template is "xxxxxx.postAuth.1.res.vtl".
Reproduction steps
amplify api gql-compile
GraphQL schema(s)
Log output
Additional information
No response