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

[AWS::Glue::Crawler] - [BUG] - unable to remove schedule from existing crawler #2247

Open
gergobig opened this issue Jan 28, 2025 · 0 comments
Labels

Comments

@gergobig
Copy link

Name of the resource

AWS::Glue::Crawler

Resource Name

No response

Issue Description

I'm using AWS CDK to deploy my CloudFormation stacks. I experienced an issue when deploying an AWS Crawler with a schedule. Redeploying it with the schedule set to None or removing this line updates the AWS::Glue::Crawler resource in CloudFormation, but it doesn't remove the Schedule settings. It looks like once the schedule is set, we cannot simply remove it from CloudFormation by removing the schedule property.

Expected Behavior

Removing schedule erases existing rules and makes it "run on demand".

Observed Behavior

Removing schedule leaves the previous configuration.

Test Cases

Test Case 1:
Deploy an AWS Crawler with a schedule expression such as "cron(20-50/10 0 * * ? *)", then redeploy it by removing the schedule expression. Although the CloudFormation stack will reflect the update, the previous schedule setting will still appear on the Crawler page.

Test Case 2:
Deploy an AWS Crawler with a schedule expression like "cron(20-50/10 0 * * ? *)", then redeploy it with the schedule expression set to an empty string (""). The CloudFormation stack will update accordingly, and the Crawler page will display the schedule as "On Demand."

Other Details

I have already reported this issue to the AWS CDK team, who directed me here.
aws/aws-cdk#33194

@gergobig gergobig added the bug label Jan 28, 2025
@gergobig gergobig changed the title [aws_glue_crawler] - [BUG] - unable to remove schedule from existing crawler [AWS::Glue::Crawler] - [BUG] - unable to remove schedule from existing crawler Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant