Created
March 15, 2021 23:17
-
-
Save BarathArivazhagan/122d02e52e57e2c06b77b1936604603a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def lambda_handler(event, context): | |
cfn_client = boto3.client('cloudformation') | |
paginator = cfn_client.get_paginator('list_stacks') | |
response_iterator = paginator.paginate(StackStatusFilter=['CREATE_COMPLETE']) | |
for page in response_iterator: | |
stack = page['StackSummaries'] | |
for output in stack: | |
print output['StackName'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment