Skip to content

Commit 1740f87

Browse files
authored
feat(scheduler-and-scheduler-targets): graduate to stable 🚀 (#33903)
### Issue # (if applicable) Closes #31785 . ### Description of changes We are excited to graduate the `@aws-cdk/aws-scheduler-alpha` and `@aws-cdk/aws-scheduler-targets-alpha` modules to STABLE. They now live on as `aws-cdk-lib/aws-scheduler` and `aws-cdk-lib/aws-scheduler-targets`. The `Group` construct (deprecated) has now been removed and `ScheduleGroup` should be used instead. ### 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*
1 parent 9c47f1b commit 1740f87

File tree

215 files changed

+591760
-41
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+591760
-41
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.codebuild-start-build.js.snapshot/asset.a5feac1d1e65b04919886f5961fd2ba1352489d558439d9d6592877e92fc2814.bundle/index.js

Lines changed: 33498 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/aws-scheduler-targets/test/integ.codebuild-start-build.js.snapshot/aws-cdk-scheduler-targets-codebuild-start-build.assets.json

Lines changed: 19 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,268 @@
1+
{
2+
"Resources": {
3+
"MyParameter18BA547D": {
4+
"Type": "AWS::SSM::Parameter",
5+
"Properties": {
6+
"Name": "MyParameter",
7+
"Type": "String",
8+
"Value": "🌧️"
9+
}
10+
},
11+
"SchedulerRole59E73443": {
12+
"Type": "AWS::IAM::Role",
13+
"Properties": {
14+
"AssumeRolePolicyDocument": {
15+
"Statement": [
16+
{
17+
"Action": "sts:AssumeRole",
18+
"Effect": "Allow",
19+
"Principal": {
20+
"Service": [
21+
"codebuild.amazonaws.com",
22+
"scheduler.amazonaws.com"
23+
]
24+
}
25+
}
26+
],
27+
"Version": "2012-10-17"
28+
}
29+
}
30+
},
31+
"SchedulerRoleDefaultPolicy66F774B8": {
32+
"Type": "AWS::IAM::Policy",
33+
"Properties": {
34+
"PolicyDocument": {
35+
"Statement": [
36+
{
37+
"Action": [
38+
"logs:CreateLogGroup",
39+
"logs:CreateLogStream",
40+
"logs:PutLogEvents"
41+
],
42+
"Effect": "Allow",
43+
"Resource": [
44+
{
45+
"Fn::Join": [
46+
"",
47+
[
48+
"arn:",
49+
{
50+
"Ref": "AWS::Partition"
51+
},
52+
":logs:",
53+
{
54+
"Ref": "AWS::Region"
55+
},
56+
":",
57+
{
58+
"Ref": "AWS::AccountId"
59+
},
60+
":log-group:/aws/codebuild/",
61+
{
62+
"Ref": "ProjectC78D97AD"
63+
},
64+
":*"
65+
]
66+
]
67+
},
68+
{
69+
"Fn::Join": [
70+
"",
71+
[
72+
"arn:",
73+
{
74+
"Ref": "AWS::Partition"
75+
},
76+
":logs:",
77+
{
78+
"Ref": "AWS::Region"
79+
},
80+
":",
81+
{
82+
"Ref": "AWS::AccountId"
83+
},
84+
":log-group:/aws/codebuild/",
85+
{
86+
"Ref": "ProjectC78D97AD"
87+
}
88+
]
89+
]
90+
}
91+
]
92+
},
93+
{
94+
"Action": [
95+
"codebuild:BatchPutCodeCoverages",
96+
"codebuild:BatchPutTestCases",
97+
"codebuild:CreateReport",
98+
"codebuild:CreateReportGroup",
99+
"codebuild:UpdateReport"
100+
],
101+
"Effect": "Allow",
102+
"Resource": {
103+
"Fn::Join": [
104+
"",
105+
[
106+
"arn:",
107+
{
108+
"Ref": "AWS::Partition"
109+
},
110+
":codebuild:",
111+
{
112+
"Ref": "AWS::Region"
113+
},
114+
":",
115+
{
116+
"Ref": "AWS::AccountId"
117+
},
118+
":report-group/",
119+
{
120+
"Ref": "ProjectC78D97AD"
121+
},
122+
"-*"
123+
]
124+
]
125+
}
126+
},
127+
{
128+
"Action": "codebuild:StartBuild",
129+
"Effect": "Allow",
130+
"Resource": {
131+
"Fn::GetAtt": [
132+
"ProjectC78D97AD",
133+
"Arn"
134+
]
135+
}
136+
},
137+
{
138+
"Action": "ssm:PutParameter",
139+
"Effect": "Allow",
140+
"Resource": {
141+
"Fn::Join": [
142+
"",
143+
[
144+
"arn:",
145+
{
146+
"Ref": "AWS::Partition"
147+
},
148+
":ssm:",
149+
{
150+
"Ref": "AWS::Region"
151+
},
152+
":",
153+
{
154+
"Ref": "AWS::AccountId"
155+
},
156+
":parameter/",
157+
{
158+
"Ref": "MyParameter18BA547D"
159+
}
160+
]
161+
]
162+
}
163+
}
164+
],
165+
"Version": "2012-10-17"
166+
},
167+
"PolicyName": "SchedulerRoleDefaultPolicy66F774B8",
168+
"Roles": [
169+
{
170+
"Ref": "SchedulerRole59E73443"
171+
}
172+
]
173+
}
174+
},
175+
"ProjectC78D97AD": {
176+
"Type": "AWS::CodeBuild::Project",
177+
"Properties": {
178+
"Artifacts": {
179+
"Type": "NO_ARTIFACTS"
180+
},
181+
"Cache": {
182+
"Type": "NO_CACHE"
183+
},
184+
"EncryptionKey": "alias/aws/s3",
185+
"Environment": {
186+
"ComputeType": "BUILD_GENERAL1_SMALL",
187+
"Image": "aws/codebuild/standard:7.0",
188+
"ImagePullCredentialsType": "CODEBUILD",
189+
"PrivilegedMode": false,
190+
"Type": "LINUX_CONTAINER"
191+
},
192+
"ServiceRole": {
193+
"Fn::GetAtt": [
194+
"SchedulerRole59E73443",
195+
"Arn"
196+
]
197+
},
198+
"Source": {
199+
"BuildSpec": "{\n \"version\": \"0.2\",\n \"phases\": {\n \"build\": {\n \"commands\": [\n \"aws ssm put-parameter --overwrite --name MyParameter --value 🌈\"\n ]\n }\n }\n}",
200+
"Type": "NO_SOURCE"
201+
}
202+
}
203+
},
204+
"Schedule83A77FD1": {
205+
"Type": "AWS::Scheduler::Schedule",
206+
"Properties": {
207+
"FlexibleTimeWindow": {
208+
"Mode": "OFF"
209+
},
210+
"ScheduleExpression": "rate(1 minute)",
211+
"ScheduleExpressionTimezone": "Etc/UTC",
212+
"State": "ENABLED",
213+
"Target": {
214+
"Arn": {
215+
"Fn::GetAtt": [
216+
"ProjectC78D97AD",
217+
"Arn"
218+
]
219+
},
220+
"RetryPolicy": {
221+
"MaximumEventAgeInSeconds": 86400,
222+
"MaximumRetryAttempts": 185
223+
},
224+
"RoleArn": {
225+
"Fn::GetAtt": [
226+
"SchedulerRole59E73443",
227+
"Arn"
228+
]
229+
}
230+
}
231+
}
232+
}
233+
},
234+
"Parameters": {
235+
"BootstrapVersion": {
236+
"Type": "AWS::SSM::Parameter::Value<String>",
237+
"Default": "/cdk-bootstrap/hnb659fds/version",
238+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
239+
}
240+
},
241+
"Rules": {
242+
"CheckBootstrapVersion": {
243+
"Assertions": [
244+
{
245+
"Assert": {
246+
"Fn::Not": [
247+
{
248+
"Fn::Contains": [
249+
[
250+
"1",
251+
"2",
252+
"3",
253+
"4",
254+
"5"
255+
],
256+
{
257+
"Ref": "BootstrapVersion"
258+
}
259+
]
260+
}
261+
]
262+
},
263+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
264+
}
265+
]
266+
}
267+
}
268+
}

packages/@aws-cdk-testing/framework-integ/test/aws-scheduler-targets/test/integ.codebuild-start-build.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/aws-scheduler-targets/test/integ.codebuild-start-build.js.snapshot/integ.json

Lines changed: 13 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/aws-scheduler-targets/test/integ.codebuild-start-build.js.snapshot/integrationtestcodebuildstartbuildDefaultTestDeployAssert416931F1.assets.json

Lines changed: 32 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)