Skip to content

Commit 4eb5e99

Browse files
authored
feat(codebuild): adds support for standard (7.0) image (#25136)
Closes #25124 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 9176fb9 commit 4eb5e99

24 files changed

+3855
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "31.0.0",
3+
"files": {
4+
"0765ff416c5e4523ba0bbdb8e53aff6c7d624c5023c3a04e16b3da31551a31c7": {
5+
"source": {
6+
"path": "Standard1.template.json",
7+
"packaging": "file"
8+
},
9+
"destinations": {
10+
"current_account-current_region": {
11+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12+
"objectKey": "0765ff416c5e4523ba0bbdb8e53aff6c7d624c5023c3a04e16b3da31551a31c7.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,191 @@
1+
{
2+
"Resources": {
3+
"ProjectRole4CCB274E": {
4+
"Type": "AWS::IAM::Role",
5+
"Properties": {
6+
"AssumeRolePolicyDocument": {
7+
"Statement": [
8+
{
9+
"Action": "sts:AssumeRole",
10+
"Effect": "Allow",
11+
"Principal": {
12+
"Service": "codebuild.amazonaws.com"
13+
}
14+
}
15+
],
16+
"Version": "2012-10-17"
17+
}
18+
}
19+
},
20+
"ProjectRoleDefaultPolicy7F29461B": {
21+
"Type": "AWS::IAM::Policy",
22+
"Properties": {
23+
"PolicyDocument": {
24+
"Statement": [
25+
{
26+
"Action": [
27+
"logs:CreateLogGroup",
28+
"logs:CreateLogStream",
29+
"logs:PutLogEvents"
30+
],
31+
"Effect": "Allow",
32+
"Resource": [
33+
{
34+
"Fn::Join": [
35+
"",
36+
[
37+
"arn:",
38+
{
39+
"Ref": "AWS::Partition"
40+
},
41+
":logs:",
42+
{
43+
"Ref": "AWS::Region"
44+
},
45+
":",
46+
{
47+
"Ref": "AWS::AccountId"
48+
},
49+
":log-group:/aws/codebuild/",
50+
{
51+
"Ref": "ProjectC78D97AD"
52+
},
53+
":*"
54+
]
55+
]
56+
},
57+
{
58+
"Fn::Join": [
59+
"",
60+
[
61+
"arn:",
62+
{
63+
"Ref": "AWS::Partition"
64+
},
65+
":logs:",
66+
{
67+
"Ref": "AWS::Region"
68+
},
69+
":",
70+
{
71+
"Ref": "AWS::AccountId"
72+
},
73+
":log-group:/aws/codebuild/",
74+
{
75+
"Ref": "ProjectC78D97AD"
76+
}
77+
]
78+
]
79+
}
80+
]
81+
},
82+
{
83+
"Action": [
84+
"codebuild:BatchPutCodeCoverages",
85+
"codebuild:BatchPutTestCases",
86+
"codebuild:CreateReport",
87+
"codebuild:CreateReportGroup",
88+
"codebuild:UpdateReport"
89+
],
90+
"Effect": "Allow",
91+
"Resource": {
92+
"Fn::Join": [
93+
"",
94+
[
95+
"arn:",
96+
{
97+
"Ref": "AWS::Partition"
98+
},
99+
":codebuild:",
100+
{
101+
"Ref": "AWS::Region"
102+
},
103+
":",
104+
{
105+
"Ref": "AWS::AccountId"
106+
},
107+
":report-group/",
108+
{
109+
"Ref": "ProjectC78D97AD"
110+
},
111+
"-*"
112+
]
113+
]
114+
}
115+
}
116+
],
117+
"Version": "2012-10-17"
118+
},
119+
"PolicyName": "ProjectRoleDefaultPolicy7F29461B",
120+
"Roles": [
121+
{
122+
"Ref": "ProjectRole4CCB274E"
123+
}
124+
]
125+
}
126+
},
127+
"ProjectC78D97AD": {
128+
"Type": "AWS::CodeBuild::Project",
129+
"Properties": {
130+
"Artifacts": {
131+
"Type": "NO_ARTIFACTS"
132+
},
133+
"Environment": {
134+
"ComputeType": "BUILD_GENERAL1_SMALL",
135+
"Image": "aws/codebuild/standard:1.0",
136+
"ImagePullCredentialsType": "CODEBUILD",
137+
"PrivilegedMode": false,
138+
"Type": "LINUX_CONTAINER"
139+
},
140+
"ServiceRole": {
141+
"Fn::GetAtt": [
142+
"ProjectRole4CCB274E",
143+
"Arn"
144+
]
145+
},
146+
"Source": {
147+
"BuildSpec": "{\n \"version\": \"0.2\"\n}",
148+
"Type": "NO_SOURCE"
149+
},
150+
"Cache": {
151+
"Type": "NO_CACHE"
152+
},
153+
"EncryptionKey": "alias/aws/s3"
154+
}
155+
}
156+
},
157+
"Parameters": {
158+
"BootstrapVersion": {
159+
"Type": "AWS::SSM::Parameter::Value<String>",
160+
"Default": "/cdk-bootstrap/hnb659fds/version",
161+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
162+
}
163+
},
164+
"Rules": {
165+
"CheckBootstrapVersion": {
166+
"Assertions": [
167+
{
168+
"Assert": {
169+
"Fn::Not": [
170+
{
171+
"Fn::Contains": [
172+
[
173+
"1",
174+
"2",
175+
"3",
176+
"4",
177+
"5"
178+
],
179+
{
180+
"Ref": "BootstrapVersion"
181+
}
182+
]
183+
}
184+
]
185+
},
186+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
187+
}
188+
]
189+
}
190+
}
191+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "31.0.0",
3+
"files": {
4+
"08a2977eefcf75da71bd1943117cf924fc65c22ec81f9d9e78f6d43939c4238a": {
5+
"source": {
6+
"path": "Standard2.template.json",
7+
"packaging": "file"
8+
},
9+
"destinations": {
10+
"current_account-current_region": {
11+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12+
"objectKey": "08a2977eefcf75da71bd1943117cf924fc65c22ec81f9d9e78f6d43939c4238a.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+
}

0 commit comments

Comments
 (0)