Using python in an aws lambda I want to retrieve a parameter from the ssm parameter store then modify it.
So I can retrieve it easily like this
ssm = boto3.client('ssm')
parameter = ssm.get_parameter(Name='/my_test/test', WithDecryption=True)
How can I use the client to update the string value of this parameter?
if((parameter['Parameter']['Value']) == 'ONE_STRING'):
// can i update the parameter value here?
Solved with the following code
if((parameter['Parameter']['Value']) == 'ONE_STRING'):
ssm.put_parameter(
Name='/my_test/test',
Value='NEW_STRING',
Type='String',
Overwrite=True
)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.