Skip to content

Get parameter synchronously for v3 aws-sdk #4519

Answered by RanVaknin
anilgarg88 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @anilgarg88,

Im not really familiar with aws-param-store. But using a 3rd party tool to manage AWS secrets is probably not the best solution.

the function definition initialises first and then this ssm function gets executed. my lambda function invocation fails because this environment variable is not available.

Are you sure about this?
From what I can see you are telling the SDK: "fetch me this secret so I can then use to call the SDK with" Which obviously will cause an error.
You need to run your lambda with your credentials already wired up to make calls to the SDK (those env variables need to be injected before the function fires) you can learn more about how to do that by follow…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@anilgarg88
Comment options

@RanVaknin
Comment options

Answer selected by yenfryherrerafeliz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants