Created
July 31, 2020 14:02
-
-
Save PaulDuvall/e54d35843bd7492b4b2746ac7acd957b to your computer and use it in GitHub Desktop.
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
stack_name = os.environ['stackName'] | |
def delete_cfn(stack_name): | |
try: | |
cfn = boto3.resource('cloudformation') | |
stack = cfn.Stack(stack_name) | |
stack.delete() | |
return "SUCCESS" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment