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.

33 lines
863 B

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