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.

18 lines
454 B

  1. import json
  2. import time
  3. import boto3
  4. from botocore.exceptions import ClientError
  5. region = 'eu-central-1'
  6. stackName = 'cloudcomp-counter-demo-stack'
  7. client = boto3.setup_default_session(region_name=region)
  8. cfClient = boto3.client('cloudformation')
  9. print("Showing stack...")
  10. print("------------------------------------")
  11. response = cfClient.describe_stacks(
  12. StackName=stackName,
  13. )
  14. print(json.dumps(response, indent=4, sort_keys=True, default=str))