Skip to content

Commit 0b822b3

Browse files
authored
chore(config): Available managed rule in 202208 (#23518)
MagagedRule up-to-date whenever possible. fixes #21896 ---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Construct Runtime Dependencies: * [ ] This PR adds new construct runtime dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-construct-runtime-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 07f2d7b commit 0b822b3

27 files changed

+2145
-159
lines changed

packages/@aws-cdk/aws-config/lib/rule.ts

+665-17
Large diffs are not rendered by default.
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"version": "21.0.0",
2+
"version": "30.0.0",
33
"files": {
44
"99b272ad5d23fb805d1e06b58a04179d8720a36f6aa8cf035eff419db2e87432": {
55
"source": {
6-
"path": "aws-cdk-config-rule-integ.template.json",
6+
"path": "aws-cdk-config-custompolicy.template.json",
77
"packaging": "file"
88
},
99
"destinations": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "30.0.0",
3+
"files": {
4+
"21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5+
"source": {
6+
"path": "awscdkconfigruleintegDefaultTestDeployAssert37C5819B.template.json",
7+
"packaging": "file"
8+
},
9+
"destinations": {
10+
"current_account-current_region": {
11+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12+
"objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
13+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14+
}
15+
}
16+
}
17+
},
18+
"dockerImages": {}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"Parameters": {
3+
"BootstrapVersion": {
4+
"Type": "AWS::SSM::Parameter::Value<String>",
5+
"Default": "/cdk-bootstrap/hnb659fds/version",
6+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
7+
}
8+
},
9+
"Rules": {
10+
"CheckBootstrapVersion": {
11+
"Assertions": [
12+
{
13+
"Assert": {
14+
"Fn::Not": [
15+
{
16+
"Fn::Contains": [
17+
[
18+
"1",
19+
"2",
20+
"3",
21+
"4",
22+
"5"
23+
],
24+
{
25+
"Ref": "BootstrapVersion"
26+
}
27+
]
28+
}
29+
]
30+
},
31+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
32+
}
33+
]
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":"30.0.0"}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": "30.0.0",
3+
"testCases": {
4+
"aws-cdk-config-rule-integ/DefaultTest": {
5+
"stacks": [
6+
"aws-cdk-config-custompolicy"
7+
],
8+
"assertionStack": "aws-cdk-config-rule-integ/DefaultTest/DeployAssert",
9+
"assertionStackName": "awscdkconfigruleintegDefaultTestDeployAssert37C5819B"
10+
}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
{
2+
"version": "30.0.0",
3+
"artifacts": {
4+
"aws-cdk-config-custompolicy.assets": {
5+
"type": "cdk:asset-manifest",
6+
"properties": {
7+
"file": "aws-cdk-config-custompolicy.assets.json",
8+
"requiresBootstrapStackVersion": 6,
9+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
10+
}
11+
},
12+
"aws-cdk-config-custompolicy": {
13+
"type": "aws:cloudformation:stack",
14+
"environment": "aws://unknown-account/unknown-region",
15+
"properties": {
16+
"templateFile": "aws-cdk-config-custompolicy.template.json",
17+
"validateOnSynth": false,
18+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
19+
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
20+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/99b272ad5d23fb805d1e06b58a04179d8720a36f6aa8cf035eff419db2e87432.json",
21+
"requiresBootstrapStackVersion": 6,
22+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
23+
"additionalDependencies": [
24+
"aws-cdk-config-custompolicy.assets"
25+
],
26+
"lookupRole": {
27+
"arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}",
28+
"requiresBootstrapStackVersion": 8,
29+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
30+
}
31+
},
32+
"dependencies": [
33+
"aws-cdk-config-custompolicy.assets"
34+
],
35+
"metadata": {
36+
"/aws-cdk-config-custompolicy/CustomFunction/ServiceRole/Resource": [
37+
{
38+
"type": "aws:cdk:logicalId",
39+
"data": "CustomFunctionServiceRoleD3F73B79"
40+
}
41+
],
42+
"/aws-cdk-config-custompolicy/CustomFunction/Resource": [
43+
{
44+
"type": "aws:cdk:logicalId",
45+
"data": "CustomFunctionBADD59E7"
46+
}
47+
],
48+
"/aws-cdk-config-custompolicy/CustomFunction/CustomRulePermissionbM1jVaicvRO9SDCiAbsQcYrOlESEtMwrrF9ZQQRvd5Q=": [
49+
{
50+
"type": "aws:cdk:logicalId",
51+
"data": "CustomFunctionCustomRulePermissionbM1jVaicvRO9SDCiAbsQcYrOlESEtMwrrF9ZQQRvd5QED54A3F8"
52+
}
53+
],
54+
"/aws-cdk-config-custompolicy/Custom/Resource": [
55+
{
56+
"type": "aws:cdk:logicalId",
57+
"data": "Custom8166710A"
58+
}
59+
],
60+
"/aws-cdk-config-custompolicy/Drift/Resource": [
61+
{
62+
"type": "aws:cdk:logicalId",
63+
"data": "Drift34D3210F"
64+
}
65+
],
66+
"/aws-cdk-config-custompolicy/Drift/Role/Resource": [
67+
{
68+
"type": "aws:cdk:logicalId",
69+
"data": "DriftRole8A5FB833"
70+
}
71+
],
72+
"/aws-cdk-config-custompolicy/Drift/ComplianceChange/Resource": [
73+
{
74+
"type": "aws:cdk:logicalId",
75+
"data": "DriftComplianceChange4C0F2B82"
76+
}
77+
],
78+
"/aws-cdk-config-custompolicy/ComplianceTopic/Resource": [
79+
{
80+
"type": "aws:cdk:logicalId",
81+
"data": "ComplianceTopic0229448B"
82+
}
83+
],
84+
"/aws-cdk-config-custompolicy/ComplianceTopic/Policy/Resource": [
85+
{
86+
"type": "aws:cdk:logicalId",
87+
"data": "ComplianceTopicPolicyF8BC46F0"
88+
}
89+
],
90+
"/aws-cdk-config-custompolicy/BootstrapVersion": [
91+
{
92+
"type": "aws:cdk:logicalId",
93+
"data": "BootstrapVersion"
94+
}
95+
],
96+
"/aws-cdk-config-custompolicy/CheckBootstrapVersion": [
97+
{
98+
"type": "aws:cdk:logicalId",
99+
"data": "CheckBootstrapVersion"
100+
}
101+
]
102+
},
103+
"displayName": "aws-cdk-config-custompolicy"
104+
},
105+
"awscdkconfigruleintegDefaultTestDeployAssert37C5819B.assets": {
106+
"type": "cdk:asset-manifest",
107+
"properties": {
108+
"file": "awscdkconfigruleintegDefaultTestDeployAssert37C5819B.assets.json",
109+
"requiresBootstrapStackVersion": 6,
110+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
111+
}
112+
},
113+
"awscdkconfigruleintegDefaultTestDeployAssert37C5819B": {
114+
"type": "aws:cloudformation:stack",
115+
"environment": "aws://unknown-account/unknown-region",
116+
"properties": {
117+
"templateFile": "awscdkconfigruleintegDefaultTestDeployAssert37C5819B.template.json",
118+
"validateOnSynth": false,
119+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
120+
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
121+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
122+
"requiresBootstrapStackVersion": 6,
123+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
124+
"additionalDependencies": [
125+
"awscdkconfigruleintegDefaultTestDeployAssert37C5819B.assets"
126+
],
127+
"lookupRole": {
128+
"arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}",
129+
"requiresBootstrapStackVersion": 8,
130+
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version"
131+
}
132+
},
133+
"dependencies": [
134+
"awscdkconfigruleintegDefaultTestDeployAssert37C5819B.assets"
135+
],
136+
"metadata": {
137+
"/aws-cdk-config-rule-integ/DefaultTest/DeployAssert/BootstrapVersion": [
138+
{
139+
"type": "aws:cdk:logicalId",
140+
"data": "BootstrapVersion"
141+
}
142+
],
143+
"/aws-cdk-config-rule-integ/DefaultTest/DeployAssert/CheckBootstrapVersion": [
144+
{
145+
"type": "aws:cdk:logicalId",
146+
"data": "CheckBootstrapVersion"
147+
}
148+
]
149+
},
150+
"displayName": "aws-cdk-config-rule-integ/DefaultTest/DeployAssert"
151+
},
152+
"Tree": {
153+
"type": "cdk:tree",
154+
"properties": {
155+
"file": "tree.json"
156+
}
157+
}
158+
}
159+
}

0 commit comments

Comments
 (0)