Summarize how to get the value of the parameter store with AWS lambda.
get
# 1.Import boto3
import boto3
ssm = boto3.client('ssm')
# 2. get_Get parameters with parameter method
response = ssm.get_parameter(
# 3.Set the key name registered in the parast
Name = '/add/company-codes',
# 4.With Decryption if you want to get only the value= False
#With Decryption if you want to get all the information= True
WithDecryption=False
)
value = response['Parameter']['Value']
Here are some methods ↓ (Also get_parameter used above)
Recommended Posts