Oh, I think this is the problem: ```CloudFormation...
# sst
a
Oh, I think this is the problem:
Copy code
CloudFormation currently does not support setting ssm-secure params as Lambda environment variable
https://github.com/serverless-stack/serverless-stack/discussions/327
f
Yeah, that’s not supported for Lambda environment variable yet.
a
And is there a way I can do this?
I mean, this works with SLS.
I think they put the value on build time.
Can I do that with SST?
f
Yeah, you can make an api call to SSM using aws-sdk. If you look at the discussion thread u shared above, that’s the 2nd option in the table .
a
Yeah but that’s outside SST?
I mean, aws-sdk, should be part of my lambda?
That’s the part I don’t get.
f
you can import
aws-sdk
in your SST code.
a
Oh ok.
Makes sense now.
Thank you.