AWSLicenseManagerMasterAccountRolePolicy

Last Modified

Mar 12, 2026

March 12, 2026 at 09:26 PM UTC

Version

v5

Total Versions

10

Created

May 31, 2022

Actions

46

Risk

Medium

The same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

  • Medium

    Can launch resources that run as a more privileged role

    Grants the actions of 1 documented escalation path, but only on named resources or under a condition. Review that scope before trusting it.

    • cloudformation-001iam:PassRole + cloudformation:CreateStackscoped
      • iam:PassRole: condition iam:PassedToService, on arn:aws:iam::*:role/LicenseManagerServiceResourceDataSyncRole*
      • cloudformation:CreateStack: on arn:aws:cloudformation:*:*:stack/LicenseManagerCrossAccountCloudDiscoveryStack/*

    Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.

  • Medium

    Can take over existing resources that run as another role

    Grants the actions of 1 documented escalation path, but only on named resources or under a condition. Review that scope before trusting it.

    • cloudformation-002cloudformation:UpdateStackscoped
      • cloudformation:UpdateStack: on arn:aws:cloudformation:*:*:stack/LicenseManagerCrossAccountCloudDiscoveryStack/*

    Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "S3BucketPermissions",
          "Effect": "Allow",
          "Action": [
            "s3:GetBucketLocation",
            "s3:ListBucket",
            "s3:GetLifecycleConfiguration",
            "s3:PutLifecycleConfiguration",
            "s3:GetBucketPolicy",
            "s3:PutBucketPolicy"
          ],
          "Resource": [
            "arn:aws:s3:::aws-license-manager-service-*"
          ]
        },
        {
          "Sid": "S3ObjectPermissions1",
          "Effect": "Allow",
          "Action": [
            "s3:AbortMultipartUpload",
            "s3:PutObject",
            "s3:GetObject",
            "s3:ListBucketMultipartUploads",
            "s3:ListMultipartUploadParts"
          ],
          "Resource": [
            "arn:aws:s3:::aws-license-manager-service-*"
          ]
        },
        {
          "Sid": "S3ObjectPermissions2",
          "Effect": "Allow",
          "Action": [
            "s3:DeleteObject"
          ],
          "Resource": [
            "arn:aws:s3:::aws-license-manager-service-*/resource_sync/*"
          ]
        },
        {
          "Sid": "AthenaPermissions",
          "Effect": "Allow",
          "Action": [
            "athena:GetQueryExecution",
            "athena:GetQueryResults",
            "athena:StartQueryExecution"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "GluePermissions",
          "Effect": "Allow",
          "Action": [
            "glue:GetTable",
            "glue:GetPartition",
            "glue:GetPartitions"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "OrganizationPermissions",
          "Effect": "Allow",
          "Action": [
            "organizations:DescribeOrganization",
            "organizations:ListAccounts",
            "organizations:DescribeAccount",
            "organizations:ListChildren",
            "organizations:ListParents",
            "organizations:ListAccountsForParent",
            "organizations:ListRoots",
            "organizations:ListAWSServiceAccessForOrganization"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "RAMPermissions1",
          "Effect": "Allow",
          "Action": [
            "ram:GetResourceShares",
            "ram:GetResourceShareAssociations",
            "ram:TagResource"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "RAMPermissions2",
          "Effect": "Allow",
          "Action": [
            "ram:CreateResourceShare"
          ],
          "Resource": [
            "*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/Service": "LicenseManager"
            }
          }
        },
        {
          "Sid": "RAMPermissions3",
          "Effect": "Allow",
          "Action": [
            "ram:AssociateResourceShare",
            "ram:DisassociateResourceShare",
            "ram:UpdateResourceShare",
            "ram:DeleteResourceShare"
          ],
          "Resource": [
            "*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/Service": "LicenseManager"
            }
          }
        },
        {
          "Sid": "IAMGetRoles",
          "Effect": "Allow",
          "Action": [
            "iam:GetRole"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "IAMPassRoles",
          "Effect": "Allow",
          "Action": [
            "iam:PassRole"
          ],
          "Resource": [
            "arn:aws:iam::*:role/LicenseManagerServiceResourceDataSyncRole*"
          ],
          "Condition": {
            "StringEquals": {
              "iam:PassedToService": [
                "cloudformation.amazonaws.com",
                "glue.amazonaws.com"
              ]
            }
          }
        },
        {
          "Sid": "CloudformationPermission",
          "Effect": "Allow",
          "Action": [
            "cloudformation:UpdateStack",
            "cloudformation:CreateStack",
            "cloudformation:DeleteStack",
            "cloudformation:DescribeStacks"
          ],
          "Resource": [
            "arn:aws:cloudformation:*:*:stack/LicenseManagerCrossAccountCloudDiscoveryStack/*"
          ]
        },
        {
          "Sid": "GlueUpdatePermissions",
          "Effect": "Allow",
          "Action": [
            "glue:CreateTable",
            "glue:UpdateTable",
            "glue:DeleteTable",
            "glue:UpdateJob",
            "glue:UpdateCrawler"
          ],
          "Resource": [
            "arn:aws:glue:*:*:catalog",
            "arn:aws:glue:*:*:crawler/LicenseManagerResourceSynDataCrawler",
            "arn:aws:glue:*:*:job/LicenseManagerResourceSynDataProcessJob",
            "arn:aws:glue:*:*:table/license_manager_resource_inventory_db/*",
            "arn:aws:glue:*:*:table/license_manager_resource_sync/*",
            "arn:aws:glue:*:*:database/license_manager_resource_inventory_db",
            "arn:aws:glue:*:*:database/license_manager_resource_sync"
          ]
        },
        {
          "Sid": "RGPermissions",
          "Effect": "Allow",
          "Action": [
            "resource-groups:PutGroupPolicy"
          ],
          "Resource": "*",
          "Condition": {
            "ForAnyValue:StringEquals": {
              "aws:CalledVia": [
                "ram.amazonaws.com"
              ]
            }
          }
        }
      ]
    },
    "VersionId": "v5",
    "IsDefaultVersion": true,
    "CreateDate": "2022-05-31T20:50:26+00:00"
  }
}

Version History (13 recorded)

Raw history

AWSLicenseManagerMasterAccountRolePolicy - Policy Version v5

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

Mar 12, 2026

314a187

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.

May 31, 2022

18421ce

Update detected

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

Nov 18, 2021

07c93db

Update detected

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

Sep 16, 2019

49aa1d0

Update detected

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

Sep 16, 2019

71619cf

Update detected

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

Sep 16, 2019

8279033

Update detected

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

Aug 30, 2019

82a8b8f

`2019-08-29`

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

Aug 29, 2019

5016d52

Update

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

Aug 23, 2019

7366137

I updated my CLI and it looks like it reordered everything and changed the white-space, so everything looks changed, but is not

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

Jul 12, 2019

9d2dff1

First commit

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

Feb 10, 2019

ad4c2e8