Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(scheduler-targetes-alpha): multiple schedules cause resolution error during synth #30634

Merged
merged 4 commits into from
Jul 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
integ test
Tietew committed Jun 25, 2024
commit f6004fff9881b0e07c5e8f190556f14fce17ea24

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -196,6 +196,35 @@
}
]
}
},
"Schedule2750DFBB1": {
"Type": "AWS::Scheduler::Schedule",
"Properties": {
"FlexibleTimeWindow": {
"Mode": "OFF"
},
"ScheduleExpression": "at(2000-01-01T00:00:00)",
"ScheduleExpressionTimezone": "Etc/UTC",
"State": "ENABLED",
"Target": {
"Arn": {
"Fn::GetAtt": [
"MyLambdaCCE802FB",
"Arn"
]
},
"RetryPolicy": {
"MaximumEventAgeInSeconds": 86400,
"MaximumRetryAttempts": 0
},
"RoleArn": {
"Fn::GetAtt": [
"SchedulerRoleForTarget1441a743A31888",
"Arn"
]
}
}
}
}
},
"Outputs": {

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -48,6 +48,11 @@ new scheduler.Schedule(stack, 'Schedule', {
input: scheduler.ScheduleTargetInput.fromText(payload),
}),
});
// test multiple schedules with same target ARN are created correctly
new scheduler.Schedule(stack, 'Schedule2', {
schedule: scheduler.ScheduleExpression.at(new Date('2000-01-01T00:00:00Z')),
target: new LambdaInvoke(func, { retryAttempts: 0 }),
});

const integ = new IntegTest(app, 'integtest-lambda-invoke', {
testCases: [stack],