Skip to content

Instantly share code, notes, and snippets.

@cicdw
Created October 26, 2019 22:36
Show Gist options
  • Select an option

  • Save cicdw/b7540ea606ae20957a521a3feec474c9 to your computer and use it in GitHub Desktop.

Select an option

Save cicdw/b7540ea606ae20957a521a3feec474c9 to your computer and use it in GitHub Desktop.

Revisions

  1. cicdw created this gist Oct 26, 2019.
    9 changes: 9 additions & 0 deletions provide_params.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # 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'])