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

EventBridge event rule and target - don't attempt to delete managed rules #434

Open
mdgm88 opened this issue Nov 25, 2024 · 4 comments
Open

Comments

@mdgm88
Copy link

mdgm88 commented Nov 25, 2024

aws-nuke should not attempt to directly delete CloudWatchEventsRule and CloudWatchEventsTarget resources if the CloudWatchEventsRule is of type Managed. To remove Managed Rules you should instead remove the associated resources for other AWS Services.

@mdgm88
Copy link
Author

mdgm88 commented Nov 25, 2024

It seems that aws-nuke is set to force deletion, but even then it still fails to delete at least some managed rules.

@mdgm88
Copy link
Author

mdgm88 commented Nov 25, 2024

us-east-1 - CloudWatchEventsRule - Rule: AutoScalingManagedRule - [ARN: "arn:aws:events:us-east-1:012345678901:rule/AutoScalingManagedRule", EventBusName: "default", Name: "AutoScalingManagedRule", State: "ENABLED"] - failed

@mdgm88
Copy link
Author

mdgm88 commented Nov 25, 2024

Oh, it deleted on a subsequent run of aws-nuke as the associated resources had been deleted, but still it would be nice to have the option to not delete managed rules.

@ekristen
Copy link
Owner

@mdgm88 you can always write a filter to exclude anything with ManagedRule in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants