Open powelli opened 4 years ago
Just a note on this rather evolving issue, it seems that aws-nuke (version v2.19.0.2.gf8495e4) does iterate through these resources and attempts to destroy them; however there seems to be an order of operations problem causing ConflictException errors
Based on my CloudTrail, from DeleteChannel:
Cannot delete a channel that has not been stopped yet. Please stop the channel and try again.
From DeleteInput:
Input #### is busy, it cannot be deleted
I think aws-nuke would just need to call the StopChannel method for any returned MediaLive channels, and then DeleteChannel after return. Similar pattern compounding operations can be found in EC2 Instances where aws-nuke first disables protection before termination.
Looks like @tomvachon is just the talented individual to potentially help us make this minor change, if we can convince Tom to revisit his MediaLive resource addition change (99c450d) from many moons ago.
My golang is a bit weak otherwise I'd experiment with this one a bit more. Big thanks if Tom or another fearless soul can take this tweak on.
Steps to reproduce
aws-nuke
and review the dry-run output for any MediaLive resourcesExpected result
Actual result
Additional details
aws-nuke
version - v2.13.0 (via Docker imagequay.io/rebuy/aws-nuke:v2.13.0
)account-blacklist:
accounts: "": {}
docker run \ --rm -it \ -v /path/to/nuke-config.yml:/home/aws-nuke/config.yml \ -v /path/to/.aws:/home/aws-nuke/.aws \ quay.io/rebuy/aws-nuke:v2.13.0 \ --profile \
--config /home/aws-nuke/config.yml