Join Slack
Powered by
hi there What would be the proper way to inject d...
# help
m
Marcos Sampaio
01/17/2022, 7:03 AM
hi there What would be the proper way to inject database credentials (that is available in SSM parameter store) to a SST lambda?
f
Frank
01/17/2022, 7:14 AM
Hey
@Marcos Sampaio
, two options: 1. fetch SSM in CDK and set the decrypted value as environment in
sst.Function
2. fetch SSM in Lambda code
Frank
01/17/2022, 7:15 AM
option 1 is less secure b/c u can see the SSM value in plain text in CloudFormation and Lambda console
Frank
01/17/2022, 7:17 AM
Lemme know if that make sense.
m
Marcos Sampaio
01/17/2022, 7:23 AM
makes sense, thanks
@Frank
2
Views
Open in Slack
Previous
Next