Open FarrOut opened 1 year ago
Interestingly when attempting to get info on an already created Schedule using get-schedule, it fails to find the it (ResourceNotFound). If a Schedule is associated to a ScheduleGroup, the --group-name
flag must be provided.
It would be nice to have more explicit feedback to know why the existing resource cannot be found.
I am facing this issue with the following CF setup. Do we have any resolve for this?
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CloudFormation template to create an Event Bridge",
"Parameters": {
"EventBridgeRoleArn": {
"Type": "String",
"Description": "IAM Role for event bridge"
},
"StepFunctionArn": {
"Type": "String",
"Description": "Step Function Arn"
}
},
"Resources": {
"DailyJobScheduleGroup": {
"Type": "AWS::Scheduler::ScheduleGroup",
"Properties": {
"Name": "daily-job-schedule-group-cf"
}
},
"DailyBatchJobSchedule": {
"Type": "AWS::Scheduler::Schedule",
"DependsOn": [
"DailyJobScheduleGroup"
],
"Properties": {
"Name": "batch-jobs-scheduler-test-cf",
"Description": "Execute batch jobs daily",
"State": "DISABLED",
"ScheduleExpression": "cron(0 0 * * ? *)",
"FlexibleTimeWindow": {
"Mode": "OFF"
},
"Target": {
"Arn": {
"Ref": "StepFunctionArn"
},
"RoleArn": {
"Ref": "EventBridgeRoleArn"
},
"RetryPolicy": {
"MaximumEventAgeInSeconds": 86400,
"MaximumRetryAttempts": 0
}
}
}
}
},
"Outputs": {
"DailyEventBridgeArn": {
"Description": "ARN of the created daily event bridge",
"Value": {
"Fn::GetAtt": [
"DailyBatchJobSchedule",
"Arn"
]
}
}
}
}
I am also facing this issue. Cannot get Scheduler ARN since I add a GroupName property to my scheduler
Found this issue while troubleshooting the same problem. It's been over a year since it's been raised, bummer no response from anyone at AWS as it's clearly a real problem.
Name of the resource
AWS::Scheduler::ScheduleGroup
Resource Name
AWS::Scheduler::ScheduleGroup
Issue Description
Cannot create a stack which contains a AWS::Scheduler::ScheduleGroup and a AWS::Scheduler::Schedule.
Expected Behavior
Stack creates successfully.
Observed Behavior
Stack creation fails with the following error message on stack-level..
Test Cases
CDK
CFN
Other Details
No response