How Do You Use Boto and CloudFormation to Delete a Stack?

Problem scenario
You want to delete a CloudFormation Stack with Boto. What do you do?

Run a program like this (but replace "continualstack" with the name of the stack you deployed):

import boto3
cloudf = boto3.client('cloudformation', region_name='us-west-1', aws_access_key_id='AKIAMNOPQRST', aws_secret_access_key='FOOBAR1234/ZYXWV987654')
json_stack=open('lampstack.json', 'r').read()

Leave a comment

Your email address will not be published. Required fields are marked *