Skip to content

Commit 517cab1

Browse files
committed
feat(cloudformation): Add cloudformation template context definition and aspect + mixins to set context on a resource and template
1 parent a6d9ed6 commit 517cab1

36 files changed

Lines changed: 3411 additions & 0 deletions

packages/@aws-cdk-testing/framework-integ/test/core/test/integ.metadata-context.js.snapshot/MetadataContextIntegDefaultTestDeployAssert9187EC06.assets.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/core/test/integ.metadata-context.js.snapshot/MetadataContextIntegDefaultTestDeployAssert9187EC06.metadata.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/core/test/integ.metadata-context.js.snapshot/MetadataContextIntegDefaultTestDeployAssert9187EC06.template.json

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/core/test/integ.metadata-context.js.snapshot/MetadataContextTestStack.assets.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/core/test/integ.metadata-context.js.snapshot/MetadataContextTestStack.metadata.json

Lines changed: 80 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"Description": "integ test stack for MetadataContext; exercises resource + template level context",
3+
"Metadata": {
4+
"Context": {
5+
"arch": "SQS buffer -> consumer; DLQ for poison msgs",
6+
"must": [
7+
"all queues encrypted w/ SSE"
8+
],
9+
"ref": [
10+
{
11+
"at": "s3://org-iac-ctx/shared/encryption.ctx.yaml",
12+
"has": "org CMK + tagging rules",
13+
"scope": "shared"
14+
}
15+
],
16+
"owner": "framework-integ@example.com"
17+
}
18+
},
19+
"Resources": {
20+
"OrderQueue39B99167": {
21+
"Type": "AWS::SQS::Queue",
22+
"UpdateReplacePolicy": "Delete",
23+
"DeletionPolicy": "Delete",
24+
"Metadata": {
25+
"Context": {
26+
"why": "buffer order events async; std queue (throughput > ordering)",
27+
"must": [
28+
"VisTimeout >= 6x consumer timeout, else dup on retry"
29+
],
30+
"mutable": "change-with-constraints",
31+
"mutability": {
32+
"QueueName": "must-never-change"
33+
},
34+
"trust": {
35+
"src": "authored",
36+
"conf": "high"
37+
},
38+
"ops": "check ApproxAgeOfOldestMsg before cutting VisTimeout",
39+
"failureModes": [
40+
"retry 3x w/ exp backoff before DLQ"
41+
]
42+
}
43+
}
44+
},
45+
"NotificationsAlertsTopicDFE3487E": {
46+
"Type": "AWS::SNS::Topic",
47+
"Metadata": {
48+
"Context": {
49+
"why": "fan-out of alert events to oncall channels",
50+
"gaps": [
51+
"delivery retry policy never validated under load"
52+
]
53+
}
54+
}
55+
}
56+
},
57+
"Parameters": {
58+
"BootstrapVersion": {
59+
"Type": "AWS::SSM::Parameter::Value<String>",
60+
"Default": "/cdk-bootstrap/hnb659fds/version",
61+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
62+
}
63+
},
64+
"Rules": {
65+
"CheckBootstrapVersion": {
66+
"Assertions": [
67+
{
68+
"Assert": {
69+
"Fn::Not": [
70+
{
71+
"Fn::Contains": [
72+
[
73+
"1",
74+
"2",
75+
"3",
76+
"4",
77+
"5"
78+
],
79+
{
80+
"Ref": "BootstrapVersion"
81+
}
82+
]
83+
}
84+
]
85+
},
86+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
87+
}
88+
]
89+
}
90+
}
91+
}

packages/@aws-cdk-testing/framework-integ/test/core/test/integ.metadata-context.js.snapshot/cdk.out

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/core/test/integ.metadata-context.js.snapshot/integ.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)