You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a stack doesn't always create any real resources (other than metadata) and is used to support flexible deployment configurations. In one configuration, the stack deploys a VPC. In another, it loads the VPC using the .fromLookup() method.
There is a warning added to display a message to a user if they are using a non-recommended configuration. This is done with Annotations:
let warnMessage = 'don't do this'
cdk.Annotations.of(this).addWarningV2('pipelineproject:VPCStack', warnMessage);
I know i can suppress warnings in code, but what I am looking to do here is put the suppression in the cdk.json or the ~/.cdk.json
Is this possible? From looking at this PR it seems like it was discussed, but unclear if this is possible.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here is the scenario:
I have a stack doesn't always create any real resources (other than metadata) and is used to support flexible deployment configurations. In one configuration, the stack deploys a VPC. In another, it loads the VPC using the
.fromLookup()
method.There is a warning added to display a message to a user if they are using a non-recommended configuration. This is done with Annotations:
I know i can suppress warnings in code, but what I am looking to do here is put the suppression in the cdk.json or the ~/.cdk.json
Is this possible? From looking at this PR it seems like it was discussed, but unclear if this is possible.
Beta Was this translation helpful? Give feedback.
All reactions