boto3ssm

How to read and modify the SSM parameter with python boto3


i am trying to develop a code where i can access and then modify and update the SSM parameter value .

Anyone , could you let me know how can this be achieved with boto3


Solution

  • we can achieve modification by the following:

    response = ssm.put_parameter(
        Name='field_name',
        Value='new_value',
        Type='Type',
        Overwrite=True,
    )
    

    we can achieve read by the following

    response = ssm.get_parameters(
        Names=[
           'feild_name',
        ],
    )
    print(response['Parameters'][0]['Value'])