Skip to content

Instantly share code, notes, and snippets.

@cicdw
Created October 26, 2019 22:36
Show Gist options
  • Save cicdw/b7540ea606ae20957a521a3feec474c9 to your computer and use it in GitHub Desktop.
Save cicdw/b7540ea606ae20957a521a3feec474c9 to your computer and use it in GitHub Desktop.
Snippet of providing parmeter values
# if you wish to pass information about the triggering event as a parameter,
# simply add that to the inputs dictionary under the parameters key,
# whose value should be a dictionary of PARAMETER_NAME -> PARAMETER_VALUE
# pass the full event
inputs['parameters'] = dict(event=event)
# or just the bucket name
inputs['parameters'] = dict(bucket_name=event['Records'][0]['s3']['bucket']['name'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment