start/stop/status scripts for AWS cloud formation demo
This commit is contained in:
16
example-projects/counter-demo/aws-cloudformation/stop.py
Normal file
16
example-projects/counter-demo/aws-cloudformation/stop.py
Normal file
@ -0,0 +1,16 @@
|
||||
import time
|
||||
|
||||
import boto3
|
||||
from botocore.exceptions import ClientError
|
||||
|
||||
region = 'eu-central-1'
|
||||
stackName = 'cloudcomp-counter-demo-stack'
|
||||
|
||||
client = boto3.setup_default_session(region_name=region)
|
||||
cfClient = boto3.client('cloudformation')
|
||||
|
||||
print("Deleting stack...")
|
||||
print("------------------------------------")
|
||||
response = cfClient.delete_stack(
|
||||
StackName=stackName,
|
||||
)
|
Reference in New Issue
Block a user