Beispiel #1
0
def get_stack_outputs():
    if not AWS_REGION or 'STACK_NAME' not in os.environ:
        return {}
    return {
        output.key: output.value
        for output in (cloudformation.describe_stacks(os.environ['STACK_NAME'])
                       [0].outputs)
    }
Beispiel #2
0
def get_stack_outputs():
    if not AWS_REGION or 'STACK_NAME' not in os.environ:
        return {}
    return {
        output.key: output.value for output in (
            cloudformation.describe_stacks(os.environ['STACK_NAME'])[0].outputs
        )
    }