https://serverless-stack.com/ logo
#sst
Title
# sst
a

Adrián Mouly

07/29/2021, 4:29 AM
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

Frank

07/29/2021, 7:59 AM
Yeah, that’s not supported for Lambda environment variable yet.
a

Adrián Mouly

07/29/2021, 5:03 PM
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

Frank

07/29/2021, 6:29 PM
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

Adrián Mouly

07/29/2021, 6:42 PM
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

Frank

07/29/2021, 6:42 PM
you can import
aws-sdk
in your SST code.
a

Adrián Mouly

07/29/2021, 6:42 PM
Oh ok.
Makes sense now.
Thank you.