Retrieving parameters from the AWS Systems Manager Parameter Store

SSH into the EC2 instance and run the following command:

aws ssm get-parameters --names MySecureParameter --with-decryption --region us-east-1

We should get the following response:

The parameter value should be decrypted.

We also have a get-parameter subcommand for the aws ssm CLI command; however, currently, the AWS-provided AmazonEC2RoleForEC2 role does not include it. You can add the permission manually and then use get-parameter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.72.74