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
require 'aws' | |
class Rake::Task | |
def replace &block | |
@actions.clear | |
prerequisites.clear | |
enhance &block | |
end | |
end |
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
#!/usr/bin/env ruby | |
########################################## | |
# | |
# This script is to help you get around the dreaded 'Resource Has A Dependent Object' | |
# when deleting something in AWS. It will search a handful of places for that sg ID | |
# and let you know if it finds anything. Its a pretty quick n dirty script. | |
# | |
# If I missed any areas it should search, please let me know or better yet, make a pull request! | |
# | |
# You'll need to install the aws-sdk ruby gem: sudo gem install aws-sdk |