-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cdk nag causing error generating Amplify outputs #2428
Comments
Hey, @waltmayf 👋. Going to transfer this issue to the |
Hey @waltmayf, thank you for reaching out. On a quick test i was unable to reproduce the issue. Could you provide us the following information. |
@ykethan, Thank you for the reply. I can confirm that I'm still getting the same error. |
Marking this as bug for further investigation. I was able to reproduce the issue using the following
error:
This appears to be due to cdk-nag adding to the stack metadata and Amplify reading from the metadata |
Before opening, please confirm:
JavaScript Framework
React, Next.js
Amplify APIs
GraphQL API
Amplify Version
v6
Amplify Categories
auth
Backend
Amplify Gen 2
Environment information
Describe the bug
When you use cdk nag on an amplify project, the amplify_outputs.json file is not generated due to a ZodError.
Expected behavior
The amplify_outputs.json file should successfully generate.
Reproduction steps
When I run the sandbox command, I get the error below about the amplify_outputs.json not successfully generating.
npx ampx sandbox
Code Snippet
Code to reproduce error:
amplify/backend.ts
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
The text was updated successfully, but these errors were encountered: