View a markdown version of this page

Prerequisites and required IAM permissions for the Parameter Store extension in AWS Systems Manager Cloud Extensions - AWS Systems Manager

Prerequisites and required IAM permissions for the Parameter Store extension in AWS Systems Manager Cloud Extensions

Review the resources and IAM permissions that you need before you use the Parameter Store extension.

Prerequisites

Before you use the Parameter Store extension:

  1. Create any parameters that you need in Parameter Store.

  2. Create an IAM execution role that has permissions to read the parameters.

  3. For SecureString parameters, make sure that the role can use the AWS Key Management Service (AWS KMS) key that encrypts the parameters.

  4. Approve the capability of the extension on the profile entry. For the steps, see Approving capabilities.

Required IAM permissions

The Parameter Store extension needs an execution role with the following IAM permissions:

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ssm:GetParameter", "ssm:GetParameters" ], "Resource": "arn:aws:ssm:region:account-id:parameter/myapp/*" }, { "Effect": "Allow", "Action": "kms:Decrypt", "Resource": "arn:aws:kms:region:account-id:key/key-id" } ] }

The role needs ssm:GetParameter on each parameter that you read with GetParameter. The role needs ssm:GetParameters on each parameter that you read with GetParameters. For a SecureString, the role also needs kms:Decrypt on the key. A cross-account read by ARN also needs the owning account to share the parameter. The extension reads every parameter in the AWS Region of the runtime.

You need the KMS permission only to read SecureString values with WithDecryption set to true. To allow every parameter and every key, set Resource to "*".

These permissions apply to the role that the extension uses. That role is the execution role of the profile entry, or the credentials of the runtime.