AWSMigrationHubRefactorSpaces-SSMAutomationPolicy
Description: Use in the IAM service role passed to the SSM Automation document AWSRefactorSpaces-CreateResources to grant permissions required to run the automation. The policy grants read/write access to EC2 tags in order to track automation progress. When the Refactor Spaces environment's network bridge is enabled, the automation also adds the environment's security group to the EC2 instance to permit traffic from other Refactor Spaces services in the environment. The policy also grants access to the Application Migration Service's post launch actions SSM parameters.
AWSMigrationHubRefactorSpaces-SSMAutomationPolicy
is an AWS managed policy.
Using this policy
You can attach AWSMigrationHubRefactorSpaces-SSMAutomationPolicy
to your users, groups, and roles.
Policy
details
-
Type: Service role policy
-
Creation time: August 10, 2023, 15:08 UTC
-
Edited time: August 10, 2023, 15:08 UTC
-
ARN:
arn:aws:iam::aws:policy/service-role/AWSMigrationHubRefactorSpaces-SSMAutomationPolicy
Policy version
Policy version: v1 (default)
The policy's default version is the version that defines the permissions for the policy. When a user or role with the policy makes a request to access an AWS resource, AWS checks the default version of the policy to determine whether to allow the request.
JSON policy document
{
"Version" : "2012-10-17",
"Statement" : [
{
"Effect" : "Allow",
"Action" : [
"ec2:DescribeInstanceStatus",
"ec2:DescribeInstances"
],
"Resource" : "*"
},
{
"Effect" : "Allow",
"Action" : [
"ec2:ModifyInstanceAttribute"
],
"Resource" : "arn:aws:ec2:*:*:instance/*",
"Condition" : {
"StringEquals" : {
"aws:ResourceTag/refactor-spaces:ssm:optin" : "true"
}
}
},
{
"Effect" : "Allow",
"Action" : [
"ec2:ModifyInstanceAttribute"
],
"Resource" : "arn:aws:ec2:*:*:security-group/*"
},
{
"Effect" : "Allow",
"Action" : [
"ec2:CreateTags",
"ec2:DeleteTags"
],
"Resource" : "arn:aws:ec2:*:*:instance/*",
"Condition" : {
"StringEquals" : {
"aws:ResourceTag/refactor-spaces:ssm:optin" : "true"
},
"ForAllValues:StringEquals" : {
"aws:TagKeys" : "refactor-spaces:ssm:environment-id"
}
}
},
{
"Effect" : "Allow",
"Action" : "ssm:GetParameters",
"Resource" : "arn:aws:ssm:*:*:parameter/ManagedByAWSApplicationMigrationService-*"
}
]
}