Skip to content

Instantly share code, notes, and snippets.

@PaulDuvall
Created July 31, 2020 14:02
Show Gist options
  • Save PaulDuvall/e54d35843bd7492b4b2746ac7acd957b to your computer and use it in GitHub Desktop.
Save PaulDuvall/e54d35843bd7492b4b2746ac7acd957b to your computer and use it in GitHub Desktop.
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