question

hoid avatar image
hoid asked

What's the best way to attach a credentials file in my lambda upload?

When uploading my skill to Lambda, I'm hardcoding my credentials for a service in the code. But I don't want my credentials living out in our Bitbucket project. I tried adding a credentials file and slurping them in from the file, and zipping up the file with my golang executable using the build-lambda-zip tool but that didn't work.

alexa skills kitlambda
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jenn@amazon avatar image
Jenn@amazon answered

I use Lambda Environment Variables to pass in credentials or other values that can dynamically change.

You could also post the question on the AWS Lambda Forum, the Devs there would have more expertise on the best practices for Lambda.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.