Skip to content

Disables and deletes a cloudfront distribution with the given distributionId. Complete with eventbridge event trigger that will fire when a specified cloudwatch alarm is triggered.

Notifications You must be signed in to change notification settings

samburt0n5/delete-cloud-front-distribution

Repository files navigation

delete-cloud-front-distribution

Disables and deletes a cloudfront distribution with the given distributionId. Complete with eventbridge event trigger that will fire when a specified cloudwatch alarm is triggered. This app uses the serverless framework to deploy the required aws resources to your account and will need to be installed before use.
Note: Ensure an alarm is setup in cloudwatch that is tied to the cloudfront distribution and is named TooManyRequests, set the threshold appropriately for your needs.

Build (Standard gradle build)

$ ./gradlew build

Deploy (Deploys jar under build/libs)

$ sls deploy

Remove

$ sls remove

Invoke (Optional: Manually run the func, replace )

$ sls invoke --function delete-cloud-front-disribution --data '{"queryStringParameters": {"distributionId": "<distributionId>"}}'

About

Disables and deletes a cloudfront distribution with the given distributionId. Complete with eventbridge event trigger that will fire when a specified cloudwatch alarm is triggered.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages