简体   繁体   中英

Python/AWS: Update SSM value

I have a SSM called /project/db/ with the following content:

{
   "HOST":"https://...",
   "VERSION": "1.0"
}

Now I want to use Python to update "VERSION": "2.0" . What boto3 function should I use? Can you show an complete example please?

There is no "update" parameter option for SSM. You'll just use put_parameter to overwrite the value.

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ssm.html#SSM.Client.put_parameter

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM