Skip to content

Commit 0bec9c6

Browse files
authored
Merge branch 'main' into step-functions-readme
2 parents a9ee357 + 444cc7d commit 0bec9c6

13 files changed

Lines changed: 35831 additions & 4 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"version": "34.0.0",
3+
"files": {
4+
"f9eeaca5689691166106a01e96cb24972dd459c0e44c46f71d5a71a351954971": {
5+
"source": {
6+
"path": "asset.f9eeaca5689691166106a01e96cb24972dd459c0e44c46f71d5a71a351954971.bundle",
7+
"packaging": "zip"
8+
},
9+
"destinations": {
10+
"current_account-current_region": {
11+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12+
"objectKey": "f9eeaca5689691166106a01e96cb24972dd459c0e44c46f71d5a71a351954971.zip",
13+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14+
}
15+
}
16+
},
17+
"682d551e1f3e9c334aa63f6e65d8c8664e858c7e2ee548f14642243842564a3a": {
18+
"source": {
19+
"path": "ScramSecretIntegTestDefaultTestDeployAssert4206AED8.template.json",
20+
"packaging": "file"
21+
},
22+
"destinations": {
23+
"current_account-current_region": {
24+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
25+
"objectKey": "682d551e1f3e9c334aa63f6e65d8c8664e858c7e2ee548f14642243842564a3a.json",
26+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27+
}
28+
}
29+
}
30+
},
31+
"dockerImages": {}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
{
2+
"Resources": {
3+
"AwsApiCallKafkalistScramSecrets99a2254ce6c3e412ea0555d481633181": {
4+
"Type": "Custom::DeployAssert@SdkCallKafkalistScramSecrets",
5+
"Properties": {
6+
"ServiceToken": {
7+
"Fn::GetAtt": [
8+
"SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F",
9+
"Arn"
10+
]
11+
},
12+
"service": "Kafka",
13+
"api": "listScramSecrets",
14+
"expected": {
15+
"Fn::Join": [
16+
"",
17+
[
18+
"{\"$ObjectLike\":{\"SecretArnList\":[{\"$StringLike\":\"arn:aws:secretsmanager:",
19+
{
20+
"Ref": "AWS::Region"
21+
},
22+
":",
23+
{
24+
"Ref": "AWS::AccountId"
25+
},
26+
":secret:AmazonMSK_integ-test_integ-user-1-.*\"},{\"$StringLike\":\"arn:aws:secretsmanager:",
27+
{
28+
"Ref": "AWS::Region"
29+
},
30+
":",
31+
{
32+
"Ref": "AWS::AccountId"
33+
},
34+
":secret:AmazonMSK_integ-test_integ-user-2-.*\"}]}}"
35+
]
36+
]
37+
},
38+
"parameters": {
39+
"ClusterArn": {
40+
"Fn::Join": [
41+
"",
42+
[
43+
"\"",
44+
{
45+
"Fn::ImportValue": "ScramSecretTestStack:ExportsOutputRefClusterEB0386A796A0E3FE"
46+
},
47+
"\""
48+
]
49+
]
50+
}
51+
},
52+
"flattenResponse": "false",
53+
"salt": "1694491911380"
54+
},
55+
"UpdateReplacePolicy": "Delete",
56+
"DeletionPolicy": "Delete"
57+
},
58+
"SingletonFunction1488541a7b23466481b69b4408076b81Role37ABCE73": {
59+
"Type": "AWS::IAM::Role",
60+
"Properties": {
61+
"AssumeRolePolicyDocument": {
62+
"Version": "2012-10-17",
63+
"Statement": [
64+
{
65+
"Action": "sts:AssumeRole",
66+
"Effect": "Allow",
67+
"Principal": {
68+
"Service": "lambda.amazonaws.com"
69+
}
70+
}
71+
]
72+
},
73+
"ManagedPolicyArns": [
74+
{
75+
"Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
76+
}
77+
],
78+
"Policies": [
79+
{
80+
"PolicyName": "Inline",
81+
"PolicyDocument": {
82+
"Version": "2012-10-17",
83+
"Statement": [
84+
{
85+
"Action": [
86+
"kafka:ListScramSecrets"
87+
],
88+
"Effect": "Allow",
89+
"Resource": [
90+
"*"
91+
]
92+
}
93+
]
94+
}
95+
}
96+
]
97+
}
98+
},
99+
"SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F": {
100+
"Type": "AWS::Lambda::Function",
101+
"Properties": {
102+
"Runtime": "nodejs18.x",
103+
"Code": {
104+
"S3Bucket": {
105+
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
106+
},
107+
"S3Key": "f9eeaca5689691166106a01e96cb24972dd459c0e44c46f71d5a71a351954971.zip"
108+
},
109+
"Timeout": 120,
110+
"Handler": "index.handler",
111+
"Role": {
112+
"Fn::GetAtt": [
113+
"SingletonFunction1488541a7b23466481b69b4408076b81Role37ABCE73",
114+
"Arn"
115+
]
116+
}
117+
}
118+
}
119+
},
120+
"Outputs": {
121+
"AssertionResultsAwsApiCallKafkalistScramSecrets99a2254ce6c3e412ea0555d481633181": {
122+
"Value": {
123+
"Fn::GetAtt": [
124+
"AwsApiCallKafkalistScramSecrets99a2254ce6c3e412ea0555d481633181",
125+
"assertion"
126+
]
127+
}
128+
}
129+
},
130+
"Parameters": {
131+
"BootstrapVersion": {
132+
"Type": "AWS::SSM::Parameter::Value<String>",
133+
"Default": "/cdk-bootstrap/hnb659fds/version",
134+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
135+
}
136+
},
137+
"Rules": {
138+
"CheckBootstrapVersion": {
139+
"Assertions": [
140+
{
141+
"Assert": {
142+
"Fn::Not": [
143+
{
144+
"Fn::Contains": [
145+
[
146+
"1",
147+
"2",
148+
"3",
149+
"4",
150+
"5"
151+
],
152+
{
153+
"Ref": "BootstrapVersion"
154+
}
155+
]
156+
}
157+
]
158+
},
159+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
160+
}
161+
]
162+
}
163+
}
164+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"version": "34.0.0",
3+
"files": {
4+
"03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff": {
5+
"source": {
6+
"path": "asset.03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff",
7+
"packaging": "zip"
8+
},
9+
"destinations": {
10+
"current_account-current_region": {
11+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12+
"objectKey": "03adb2514e02907e0458bec59283658ec529425bd5df38e1194455c65dedf6ff.zip",
13+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14+
}
15+
}
16+
},
17+
"340d34ae293db2d97138557b50edeffe7434c285ff7310724b44a7c720b797f6": {
18+
"source": {
19+
"path": "ScramSecretTestStack.template.json",
20+
"packaging": "file"
21+
},
22+
"destinations": {
23+
"current_account-current_region": {
24+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
25+
"objectKey": "340d34ae293db2d97138557b50edeffe7434c285ff7310724b44a7c720b797f6.json",
26+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27+
}
28+
}
29+
}
30+
},
31+
"dockerImages": {}
32+
}

0 commit comments

Comments
 (0)