AWSMigrationHubRefactorSpacesServiceRolePolicy

Last Modified

Mar 12, 2026

March 12, 2026 at 09:26 PM UTC

Version

v3

Total Versions

4

Created

Jul 20, 2023

Actions

41

Risk

no risk signal

Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

IAM Access Analyzer (1)

  • Suggestion / EQUIVALENT_TO_NULL_FALSE

    We recommend replacing the key aws:ResourceTag/refactor-spaces:route-id in the condition block of StringLike with {aws:ResourceTag/refactor-spaces:route-id: false} to ensure better enforcement of the condition. AWS docs

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeNetworkInterfaces",
            "ec2:DescribeRouteTables",
            "ec2:DescribeSubnets",
            "ec2:DescribeSecurityGroups",
            "ec2:DescribeVpcEndpointServiceConfigurations",
            "ec2:DescribeTransitGatewayVpcAttachments",
            "elasticloadbalancing:DescribeTargetHealth",
            "elasticloadbalancing:DescribeListeners",
            "elasticloadbalancing:DescribeTargetGroups",
            "ram:GetResourceShareAssociations"
          ],
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": [
            "ec2:AuthorizeSecurityGroupIngress",
            "ec2:RevokeSecurityGroupIngress",
            "ec2:DeleteSecurityGroup",
            "ec2:DeleteTransitGatewayVpcAttachment",
            "ec2:CreateRoute",
            "ec2:DeleteRoute",
            "ec2:DeleteTags",
            "ram:DeleteResourceShare",
            "ram:AssociateResourceShare",
            "ram:DisassociateResourceShare"
          ],
          "Resource": "*",
          "Condition": {
            "Null": {
              "aws:ResourceTag/refactor-spaces:environment-id": "false"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": "ec2:DeleteVpcEndpointServiceConfigurations",
          "Resource": "*",
          "Condition": {
            "Null": {
              "aws:ResourceTag/refactor-spaces:application-id": "false"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "elasticloadbalancing:RegisterTargets",
            "elasticloadbalancing:CreateLoadBalancerListeners",
            "elasticloadbalancing:CreateListener",
            "elasticloadbalancing:DeleteListener",
            "elasticloadbalancing:DeleteTargetGroup"
          ],
          "Resource": "*",
          "Condition": {
            "StringLike": {
              "aws:ResourceTag/refactor-spaces:route-id": [
                "*"
              ]
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "apigateway:PUT",
            "apigateway:POST",
            "apigateway:GET",
            "apigateway:PATCH",
            "apigateway:DELETE"
          ],
          "Resource": [
            "arn:aws:apigateway:*::/restapis",
            "arn:aws:apigateway:*::/restapis/*",
            "arn:aws:apigateway:*::/vpclinks/*",
            "arn:aws:apigateway:*::/tags",
            "arn:aws:apigateway:*::/tags/*"
          ],
          "Condition": {
            "Null": {
              "aws:ResourceTag/refactor-spaces:application-id": "false"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": "apigateway:GET",
          "Resource": "arn:aws:apigateway:*::/vpclinks/*"
        },
        {
          "Effect": "Allow",
          "Action": "elasticloadbalancing:DeleteLoadBalancer",
          "Resource": "arn:*:elasticloadbalancing:*:*:loadbalancer/net/refactor-spaces-nlb-*"
        },
        {
          "Effect": "Allow",
          "Action": [
            "elasticloadbalancing:AddTags",
            "elasticloadbalancing:CreateListener"
          ],
          "Resource": [
            "arn:*:elasticloadbalancing:*:*:loadbalancer/net/refactor-spaces-nlb-*",
            "arn:*:elasticloadbalancing:*:*:listener/net/refactor-spaces-nlb-*"
          ],
          "Condition": {
            "Null": {
              "aws:RequestTag/refactor-spaces:route-id": "false"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": "elasticloadbalancing:DeleteListener",
          "Resource": "arn:*:elasticloadbalancing:*:*:listener/net/refactor-spaces-nlb-*"
        },
        {
          "Effect": "Allow",
          "Action": [
            "elasticloadbalancing:DeleteTargetGroup",
            "elasticloadbalancing:RegisterTargets"
          ],
          "Resource": "arn:*:elasticloadbalancing:*:*:targetgroup/refactor-spaces-tg-*"
        },
        {
          "Effect": "Allow",
          "Action": [
            "elasticloadbalancing:DeregisterTargets"
          ],
          "Resource": "arn:*:elasticloadbalancing:*:*:targetgroup/refactor-spaces-tg-*",
          "Condition": {
            "Null": {
              "aws:ResourceTag/refactor-spaces:route-id": "false"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "elasticloadbalancing:AddTags",
            "elasticloadbalancing:CreateTargetGroup"
          ],
          "Resource": "arn:*:elasticloadbalancing:*:*:targetgroup/refactor-spaces-tg-*",
          "Condition": {
            "Null": {
              "aws:RequestTag/refactor-spaces:route-id": "false"
            }
          }
        }
      ]
    },
    "VersionId": "v3",
    "IsDefaultVersion": true,
    "CreateDate": "2023-07-20T15:57:53+00:00"
  }
}

Version History (7 recorded)

Raw history

AWSMigrationHubRefactorSpacesServiceRolePolicy - Policy Version v3

No recorded action delta - this version predates the change index. View the raw diff.

Mar 12, 2026

155a023

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 18, 2024

aafbae9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 13, 2024

1b36617

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jul 20, 2023

ccf432e

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Oct 28, 2022

255b77b

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Oct 28, 2022

874d51d

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Nov 29, 2021

efb6b17