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
feat(core): configure Stack SNS notification ARNs on the Stack construct (#31107)
### Issue # (if applicable)
#8581.
### Reason for this change
It is easier and clearer to specify the SNS Topic ARNs on the stack construct itself instead of passing it as a command line argument.
### Description of changes
Added a new optional stack prop, `notificationArns`, that is written to the CloudAssembly and concatenated with the CLI option `--notification-arns`.
Don't forget to select stacks by hierarchical ID (currently display name, in our tests) when writing certain test code. Otherwise, the tests may not select the stack you expect.
Depends on: cdklabs/cdk-assets#87 and cdklabs/cloud-assembly-schema#58.
### Description of how you validated changes
Unit tests + CLI integ test. Framework integ tests not included because they would require an externally-created SNS Topic, which is not what we want in integ tests; besides, the case is covered by the CLI integ test.
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Copy file name to clipboardExpand all lines: packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/cli.integtest.ts
+33-3
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ import {
33
33
withCDKMigrateFixture,
34
34
withExtendedTimeoutFixture,
35
35
randomString,
36
+
withoutBootstrap,
36
37
}from'../../lib';
37
38
38
39
jest.setTimeout(2*60*60_000);// Includes the time to acquire locks, worst-case single-threaded runtime
@@ -276,9 +277,12 @@ integTest(
276
277
}),
277
278
);
278
279
280
+
// bootstrapping also performs synthesis. As it turns out, bootstrap-stage synthesis still causes the lookups to be cached, meaning that the lookup never
281
+
// happens when we actually call `cdk synth --no-lookups`. This results in the error never being thrown, because it never tries to lookup anything.
282
+
// Fix this by not trying to bootstrap; there's no need to bootstrap anyway, since the test never tries to deploy anything.
279
283
integTest(
280
284
'context in stage propagates to top',
281
-
withDefaultFixture(async(fixture)=>{
285
+
withoutBootstrap(async(fixture)=>{
282
286
awaitexpect(
283
287
fixture.cdkSynth({
284
288
// This will make it error to prove that the context bubbles up, and also that we can fail on command
Copy file name to clipboardExpand all lines: packages/@aws-cdk/cx-api/FEATURE_FLAGS.md
+21-1
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ Flags come in three types:
73
73
|[@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault](#aws-cdkcustom-resourceslogapiresponsedatapropertytruedefault)| When enabled, the custom resource used for `AwsCustomResource` will configure the `logApiResponseData` property as true by default | 2.145.0 | (fix) |
74
74
|[@aws-cdk/aws-s3:keepNotificationInImportedBucket](#aws-cdkaws-s3keepnotificationinimportedbucket)| When enabled, Adding notifications to a bucket in the current stack will not remove notification from imported stack. | 2.155.0 | (fix) |
75
75
|[@aws-cdk/aws-stepfunctions-tasks:useNewS3UriParametersForBedrockInvokeModelTask](#aws-cdkaws-stepfunctions-tasksusenews3uriparametersforbedrockinvokemodeltask)| When enabled, use new props for S3 URI field in task definition of state machine for bedrock invoke model. | 2.156.0 | (fix) |
76
+
|[@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions](#aws-cdkaws-ecsreduceec2fargatecloudwatchpermissions)| When enabled, we will only grant the necessary permissions when users specify cloudwatch log group through logConfiguration | 2.159.0 | (fix) |
76
77
77
78
<!-- END table -->
78
79
@@ -134,7 +135,8 @@ The following json shows the current recommended set of flags, as `cdk init` wou
0 commit comments