Files
cloud-computing-msc-ai-exam…/example-projects/counter-demo/aws-cloudformation/stop.py
2021-05-25 23:40:15 +02:00

30 lines
780 B
Python

import boto3
################################################################################################
#
# Configuration Parameters
#
################################################################################################
# region = 'eu-central-1'
region = 'us-east-1'
stackName = 'cloudcomp-counter-demo-stack'
################################################################################################
#
# boto3 code
#
################################################################################################
client = boto3.setup_default_session(region_name=region)
cfClient = boto3.client('cloudformation')
print("Deleting stack...")
print("------------------------------------")
response = cfClient.delete_stack(
StackName=stackName,
)