powerupcloud/AWSInventoryLambda

Making it play nice with lambda

superjeb opened this issue · 0 comments

I admit I don't know much regarding python but the link to make this work with lambda is 404.

I've created an IAM role and the s3 bucket but how do I edit this script to get basic functionality with my AWS account / s3 bucket and IAM role ?

I've filled in the environment variables and ensured the info is correct.
I get

Response:
{
"stackTrace": [
[
"/var/task/lambda_function.py",
276,
"lambda_handler",
"CanonicalHostedZoneName=load['CanonicalHostedZoneName']"
]
],
"errorType": "KeyError",
"errorMessage": "'CanonicalHostedZoneName'"
}

Request ID:
"d78c088c-758c-11e8-b606-251e75d4d073"

Function Logs:
START RequestId: d78c088c-758c-11e8-b606-251e75d4d073 Version: $LATEST
'CanonicalHostedZoneName': KeyError
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 276, in lambda_handler
CanonicalHostedZoneName=load['CanonicalHostedZoneName']
KeyError: 'CanonicalHostedZoneName'