aws-quickstart/quickstart-git2s3

local variable 'params' referenced before assignment

davidobrien1985 opened this issue · 1 comments

Deployed this stack for use with Bitbucket cloud.

2 things:

  • the bitbucket cloud IPs have changed, which wasn't a big deal
  • the ZipDlLambda throws this error when it runs:
local variable 'params' referenced before assignment: UnboundLocalError
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 126, in lambda_handler
r = requests.get(archive_url, verify=verify, headers=headers, params=params)
UnboundLocalError: local variable 'params' referenced before assignment

Which makes this quickstart unusable as it is.

Can this please be fixed.
Thanks.

Workaround:

Delete params=params in line 126 of lambda_function.py.