1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
For SSM documents managed by AWS, do not include the account ID.
In other words, "AWS-StartPortForwardingSession" is a document managed by AWS, so there is no need to enter the account ID.
I think the reason for the asterisk is to allow you to use SSM documents from all regions.
https://docs.aws.amazon.com/systems-manager/latest/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies
Documents and automation definition resources that are owned by Amazon, as well as public parameters that are provided by both Amazon and third-party sources, do not include account IDs in their ARN formats. For example:
- The SSM document AWS-RunPatchBaseline:
- arn:aws:ssm:us-east-2::document/AWS-RunPatchBaseline
- The automation runbook AWS-ConfigureMaintenanceWindows:
- arn:aws:ssm:us-east-2::automation-definition/AWS-ConfigureMaintenanceWindows
- The public parameter /aws/service/bottlerocket/aws-ecs-1-nvidia/x86_64/1.13.4/image_version:
- arn:aws:ssm:us-east-2::parameter/aws/service/bottlerocket/aws-ecs-1-nvidia/x86_64/1.13.4/image_version
Relevant content
- asked 7 months ago
- asked 7 months ago
- asked a year ago
- asked 8 years ago
- AWS OFFICIALUpdated 2 years ago