Skip to content

Instantly share code, notes, and snippets.

@toshke
Last active December 22, 2020 09:15
Show Gist options
  • Save toshke/1dceb650117b2f10b5686ee5510ed270 to your computer and use it in GitHub Desktop.
Save toshke/1dceb650117b2f10b5686ee5510ed270 to your computer and use it in GitHub Desktop.
crupdate custom resource
physical_id = get_physical_id(event)
if request_type == 'Create' or request_type == 'Update:
if resource_exists(physical_id):
print(f'{physical_id} will be overwritten')
create_resource()
response.success(physical_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment