You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
780 B

  1. import boto3
  2. ################################################################################################
  3. #
  4. # Configuration Parameters
  5. #
  6. ################################################################################################
  7. # region = 'eu-central-1'
  8. region = 'us-east-1'
  9. stackName = 'cloudcomp-counter-demo-stack'
  10. ################################################################################################
  11. #
  12. # boto3 code
  13. #
  14. ################################################################################################
  15. client = boto3.setup_default_session(region_name=region)
  16. cfClient = boto3.client('cloudformation')
  17. print("Deleting stack...")
  18. print("------------------------------------")
  19. response = cfClient.delete_stack(
  20. StackName=stackName,
  21. )