-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying cloud-nuke to clear aws resources
- Loading branch information
Showing
3 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
nuke_aws() { | ||
cloud-nuke --version | ||
cloud-nuke aws \ | ||
--log-level debug \ | ||
--resource-type s3 \ | ||
--resource-type vpc \ | ||
--resource-type ebs \ | ||
--resource-type eip \ | ||
--resource-type ec2 \ | ||
--resource-type efs \ | ||
--resource-type asg \ | ||
--resource-type ekscluster \ | ||
--resource-type nat-gateway \ | ||
--resource-type iam-role \ | ||
--resource-type elb \ | ||
--region us-west-2 \ | ||
--log-level debug \ | ||
--config tests/scripts/cloud-nuke-config.yml --dry-run | ||
} | ||
|
||
nuke_aws || true | ||
echo "Trying again to nuke to be sure" | ||
nuke_aws | ||
echo "Done" |