Dan Parker
Dan Parker

Reputation: 843

Adding a aws secret from secrets manager to lambda environment variable in the portal UI configuration

So,I want to put the secret from the secretmanager here, but it doesn't seem to convert or get the value. Is there anyway to put it here. Other solution would be to put it in the deploy, or to keep it like this, and have code in my function grab this value and then do a look up. I'm leaning to putting it on the deploy as it would save time for lookups.

lambda environment var

Upvotes: 2

Views: 3443

Answers (1)

Jason Wadsworth
Jason Wadsworth

Reputation: 8887

You definitely should not put it in the deploy. Doing so will expose its value in the console (or via API calls). You should resolve it in your code. You can grant permissions to your function to get its value so that only the function sees it, not users who can see the function in the console.

Upvotes: 2

Related Questions