W
W
WbICHA2020-10-13 21:51:13
Amazon Web Services
WbICHA, 2020-10-13 21:51:13

serverless. Check if environment is loaded from ssm?

Actually, serverless uses envy with loading parameters from scm.

Is it possible to somehow check with serverless if these parameters are loaded at the deployment stage (so that the deployment fails)?
Or is it just to check them when calling lambda functions?

If the latter, then what will happen to the deployment if, for example, the handler has a self-calling function with checking envs, which will throw an error if there are no envs?

Ivan Shumov helped resolve the issue in the comments to the answer.
Solution link: https://docs.aws.amazon.com/AWSCloudFormation/late...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2020-10-13
@WblCHA

From SSM, the parameters may not be loaded only if there is no access or no key. If the deployment is made through CloudFormation, then in these cases it should fail with an error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question