Last active
December 22, 2020 09:15
-
-
Save toshke/1d42f69106e11daf1f52f561c8baa716 to your computer and use it in GitHub Desktop.
physical id
This file contains 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 get_physical_id(r_properties): | |
""" Generated resource id """ | |
bucket = r_properties['Bucket'] | |
key = r_properties['Key'] | |
return f's3://{bucket}/{key}' | |
def cr_handler(event, context): | |
""" | |
Create, Update or Remove S3 object | |
as Custom Resource for AWS CloudFormation | |
""" | |
physical_id = get_physical_id(event['ResourceProperties']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment