# IAM policy example: read a Parameter Store path, with a least privilege rewrite

Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.

Allows a role to read parameters under /app/prod/ in Parameter Store and to decrypt SecureString values with one KMS key. The original allows ssm:Get* on all parameters. The rewrite names the path, two read actions and the key. The names and the account ID 111122223333 are AWS documentation placeholders.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Params",
      "Effect": "Allow",
      "Action": "ssm:Get*",
      "Resource": "*"
    }
  ]
}
```

## What it allows

- Allows every SSM action that starts with Get on every resource, including parameters, documents and inventory.

- Allows 30 actions (ssm:Get*) on every resource.

Checks:
- No flags.

The wildcard ssm:Get* covers 30 actions, among them reads of every parameter in the account.

## Least privilege rewrite

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "ReadPath",
      "Effect": "Allow",
      "Action": [
        "ssm:GetParameter",
        "ssm:GetParameters",
        "ssm:GetParametersByPath"
      ],
      "Resource": "arn:aws:ssm:us-east-1:111122223333:parameter/app/prod/*"
    },
    {
      "Sid": "DecryptValues",
      "Effect": "Allow",
      "Action": "kms:Decrypt",
      "Resource": "arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
    }
  ]
}
```

The rewrite allows three read actions on one path and the decrypt action on one key. Parameters outside /app/prod/ are not readable.

- Allows 3 actions (ssm:GetParameter, ssm:GetParameters, ssm:GetParametersByPath) on arn:aws:ssm:us-east-1:111122223333:parameter/app/prod/*.
- Allows 1 action (kms:Decrypt) on arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.

Checks:
- No flags.

- [Paste it into the workbench](/)
- [Every Systems Manager action and its access level](/actions/ssm/)

## Related pages

- [IAM policy example: write parameters under a team path](/examples/ssm-write-own-parameter-path/)
- [IAM policy example: read one CloudWatch Logs group](/examples/logs-read-one-log-group/)
- [IAM policy example: write to one log group](/examples/logs-application-write-logs/)
- [All of them](/examples/)

## Sources

- AWS Systems Manager User Guide: create a Parameter Store parameter: https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-su-create.html (read 16 Nov 2026)
- AWS KMS Developer Guide: key policies: https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-overview.html (read 16 Nov 2026)
- AWS Service Authorization Reference, programmatic access (fetched 16 Nov 2026): https://docs.aws.amazon.com/service-authorization/latest/reference/service-reference.html (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://iampolicygenerator.com/examples/ssm-read-parameter-path/

This site is not affiliated with Amazon Web Services. AWS service and product names are used only to describe AWS services.
