-
Notifications
You must be signed in to change notification settings - Fork 226
Closed
Description
when environment_variables are commented out, lambda_invoke failed with the following exception:
Traceback (most recent call last):
File "/home/ubuntu/Envs/env1/bin/lambda", line 67, in <module>
cli()
File "/home/ubuntu/Envs/env1/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/ubuntu/Envs/env1/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/ubuntu/Envs/env1/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ubuntu/Envs/env1/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/Envs/env1/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/ubuntu/Envs/env1/bin/lambda", line 40, in invoke
aws_lambda.invoke(CURRENT_DIR, event_file, verbose)
File "/home/ubuntu/Envs/env1/local/lib/python2.7/site-packages/aws_lambda/aws_lambda.py", line 147, in invoke
for key, value in cfg.get('environment_variables').items():
AttributeError: 'NoneType' object has no attribute 'items'
This happened on a project where I didn't need env vars and can't deploy them due to KMS issue when encrypting env vars.
Metadata
Metadata
Assignees
Labels
No labels