-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws_cdk.Annotations: annotations not applied if using stages #22507
Comments
Thanks for opening this issue @pwrmiller, This is happening because you aren't actually synthing the stack inside the stage with To see more information on specifying stacks, see the documentation here |
|
@peterwoodworth Is the Context: |
If the stack isn't specified it's going to be completely ignored @dontirun. You need to specify the stack as I've indicated above - top level stages are not synthesized by default. That issue you've linked just looks to me like they need to actually specify the stack (like in my above comment) |
Describe the bug
Annotations are not applied when a Stack is deployed as part of a Stage. This seems to be related to #9799.
This in turn was a duplicate of #8676 which was closed as fixed, but the annotation processing is not applied as demonstrable by the code snippet below.
This is on CDK 2.46.0 (build 5a0595e).
Expected Behavior
I expected to see the annotations in the CDK Synth output
Current Behavior
I observe no annotations (warnings, info, error) when using stacks deployed as part of a pipeline
Reproduction Steps
app.py
cdk.json
Running this with
cdk synth
will show no annotation when running thefails()
app. Running theok()
app works.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.46.0 (build 5a0595e)
Framework Version
No response
Node.js Version
v18.10.0
OS
MacOS Monterey
Language
Python
Language Version
Python (3.10.6)
Other information
No response
The text was updated successfully, but these errors were encountered: