Replies: 1 comment 2 replies
-
Are you trying to add a lambda function from another AWS account? I encountered a similar warning when adding a lambda function from a different AWS account to my stack, you should be able to get the cdk to suppress the warning by using an annotation like so: Annotations.of(realUserPool).acknowledgeWarning(
'YOUR_WARNING_ID',
'It is ok to ignore this since we are purposely adding a lambda from another account.'
) if not, your cdk is somehow thinking that your userMigrationLambda exists in another account |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following CDK Code:
that creates a warning when I run cdk synth:
Going through the code in the stack trace I find that addWarningV2 has the following message:
We run
cdk synth
with the--strict
flag which is causing our build pipeline to return an exit code 1. How can we fix this warning or suppress it?Beta Was this translation helpful? Give feedback.
All reactions