AWS systems-manager medium security documentation change
Summary
Added documentation about requiring custom IAM roles for State Manager associations, deprecating service-linked roles, and implementing ssm:AssociationDispatchAssumeRole condition key
Security assessment
The changes explicitly address security controls by: 1) Phasing out service-linked roles (which may have overprivileged access) 2) Enforcing use of custom roles with controlled permissions 3) Introducing ssm:AssociationDispatchAssumeRole condition key to enforce role specification. These directly relate to security best practices for least privilege access and IAM role management.
Diff
diff --git a/systems-manager/latest/userguide/state-manager-about.md b/systems-manager/latest/userguide/state-manager-about.md index 14124f035..66731128d 100644 --- a//systems-manager/latest/userguide/state-manager-about.md +++ b//systems-manager/latest/userguide/state-manager-about.md @@ -5 +5 @@ -Understanding when associations are applied to resourcesAbout target updates with Automation runbooks +Understanding when associations are applied to resourcesAbout target updates with Automation runbooksSetup roles for AssociationDispatchAssumeRoleManage usage of AssociationDispatchAssumeRole with ssm:AssociationDispatchAssumeRole @@ -39,0 +40,10 @@ You can create an association by using the Systems Manager console, the AWS Comm + * A role used by association to take actions on your behalf. State Manager will assume this role and call required APIs when dispatching configurations to nodes. For information about setting up the custom-provided role, see Setup roles for AssociationDispatchAssumeRole. If no role is provided, [service-linked role for Systems Manager](systems-manager/latest/userguide/using-service-linked-roles.html) will be used. + +###### Note + +It is recommended that you define a custom IAM role so that you have full control of the permissions that State Manager has when taking actions on your behalf. + +Service-linked role support in State Manager is being phased out. Associations relying on service-linked role may require updates in the future to continue functioning properly. + +For information about managing the usage of custom-provided role, see Manage usage of AssociationDispatchAssumeRole with ssm:AssociationDispatchAssumeRole. + @@ -131,0 +142,52 @@ For information about using the console to control when associations run, includ +## Setup roles for `AssociationDispatchAssumeRole` + +To setup custom dispatch assume roles that State Manager assumes to perform actions on your behalf, the roles should trust `ssm.amazonaws.com` and have the required permission to call `ssm:SendCommand` or `ssm:StartAutomationExecution` based on association use cases. + +Sample trust policy: + + + { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Service": [ + "ssm.amazonaws.com" + ] + }, + "Action": "sts:AssumeRole" + } + ] + } + + +## Manage usage of AssociationDispatchAssumeRole with `ssm:AssociationDispatchAssumeRole` + +To manage the usage of custom dispatch assume roles that State Manager assumes to perform actions on your behalf, use the `ssm:AssociationDispatchAssumeRole` condition key. This condition controls whether associations can be created or updated without specifying a custom dispatch assume role. + +In the following sample policy, the `"Allow"` statement grants permissions to association create and update APIs only when the `AssociationDispatchAssumeRole` parameter is specified. Without this parameter in API requests, the policy does not grant permission to create or update associations: + + + { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "ssm:CreateAssociation", + "ssm:UpdateAssociation", + "ssm:CreateAssociationBatch" + ], + "Resource": "*", + "Condition": { + "StringLike": { + "ssm:AssociationDispatchAssumeRole": "*" + } + } + } + ] + } + +