Skip to content

Instantly share code, notes, and snippets.

@dinhanhhuy
Last active July 2, 2023 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dinhanhhuy/9b87173a4d51afadf951a848a512331f to your computer and use it in GitHub Desktop.
Save dinhanhhuy/9b87173a4d51afadf951a848a512331f to your computer and use it in GitHub Desktop.
AWS - Control Tower View Only Policy

Resource access

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "backup:Describe*",
                "backup:Get*",
                "backup:List*",
                "cloudformation:Describe*",
                "cloudformation:Detect*",
                "cloudformation:Estimate*",
                "cloudformation:Get*",
                "cloudformation:List*",
                "cloudtrail:Describe*",
                "cloudtrail:Get*",
                "cloudtrail:List*",
                "cloudtrail:LookupEvents",
                "cloudwatch:Describe*",
                "cloudwatch:Get*",
                "cloudwatch:List*",
                "config:BatchGetAggregateResourceConfig",
                "config:BatchGetResourceConfig",
                "config:Deliver*",
                "config:Describe*",
                "config:Get*",
                "config:List*",
                "config:SelectAggregateResourceConfig",
                "config:SelectResourceConfig",
                "detective:BatchGetGraphMemberDatasources",
                "detective:BatchGetMembershipDatasources",
                "detective:Get*",
                "detective:List*",
                "detective:SearchGraph",
                "discovery:Describe*",
                "discovery:Get*",
                "discovery:List*",
                "events:Describe*",
                "events:List*",
                "events:Test*",
                "guardduty:Describe*",
                "guardduty:Get*",
                "guardduty:List*",
                "health:Describe*",
                "iam:Generate*",
                "iam:Get*",
                "iam:List*",
                "iam:Simulate*",
                "identity-sync:GetSyncProfile",
                "identity-sync:GetSyncTarget",
                "identity-sync:ListSyncFilters",
                "identitystore-auth:BatchGetSession",
                "identitystore-auth:ListSessions",
                "inspector:Describe*",
                "inspector:Get*",
                "inspector:List*",
                "inspector:Preview*",
                "inspector2:BatchGetAccountStatus",
                "inspector2:BatchGetFreeTrialInfo",
                "inspector2:DescribeOrganizationConfiguration",
                "inspector2:GetDelegatedAdminAccount",
                "inspector2:GetFindingsReportStatus",
                "inspector2:GetMember",
                "inspector2:ListAccountPermissions",
                "inspector2:ListCoverage",
                "inspector2:ListCoverageStatistics",
                "inspector2:ListDelegatedAdminAccounts",
                "inspector2:ListFilters",
                "inspector2:ListFindingAggregations",
                "inspector2:ListFindings",
                "inspector2:ListMembers",
                "inspector2:ListTagsForResource",
                "inspector2:ListUsageTotals",
                "kms:Describe*",
                "kms:Get*",
                "kms:List*",
                "lambda:Get*",
                "lambda:List*",
                "logs:Describe*",
                "logs:FilterLogEvents",
                "logs:Get*",
                "logs:ListTagsLogGroup",
                "logs:StartQuery",
                "logs:StopQuery",
                "logs:TestMetricFilter",
                "network-firewall:DescribeFirewall",
                "network-firewall:DescribeFirewallPolicy",
                "network-firewall:DescribeLoggingConfiguration",
                "network-firewall:DescribeResourcePolicy",
                "network-firewall:DescribeRuleGroup",
                "network-firewall:DescribeRuleGroupMetadata",
                "network-firewall:ListFirewallPolicies",
                "network-firewall:ListFirewalls",
                "network-firewall:ListRuleGroups",
                "network-firewall:ListTagsForResource",
                "networkmanager:DescribeGlobalNetworks",
                "networkmanager:GetConnectAttachment",
                "networkmanager:GetConnections",
                "networkmanager:GetConnectPeer",
                "networkmanager:GetConnectPeerAssociations",
                "networkmanager:GetCoreNetwork",
                "networkmanager:GetCoreNetworkChangeEvents",
                "networkmanager:GetCoreNetworkChangeSet",
                "networkmanager:GetCoreNetworkPolicy",
                "networkmanager:GetCustomerGatewayAssociations",
                "networkmanager:GetDevices",
                "networkmanager:GetLinkAssociations",
                "networkmanager:GetLinks",
                "networkmanager:GetNetworkResourceCounts",
                "networkmanager:GetNetworkResourceRelationships",
                "networkmanager:GetNetworkResources",
                "networkmanager:GetNetworkRoutes",
                "networkmanager:GetNetworkTelemetry",
                "networkmanager:GetResourcePolicy",
                "networkmanager:GetRouteAnalysis",
                "networkmanager:GetSites",
                "networkmanager:GetSiteToSiteVpnAttachment",
                "networkmanager:GetTransitGatewayConnectPeerAssociations",
                "networkmanager:GetTransitGatewayPeering",
                "networkmanager:GetTransitGatewayRegistrations",
                "networkmanager:GetTransitGatewayRouteTableAttachment",
                "networkmanager:GetVpcAttachment",
                "networkmanager:ListAttachments",
                "networkmanager:ListConnectPeers",
                "networkmanager:ListCoreNetworkPolicyVersions",
                "networkmanager:ListCoreNetworks",
                "networkmanager:ListPeerings",
                "networkmanager:ListTagsForResource",
                "ram:Get*",
                "ram:List*",
                "s3:DescribeJob",
                "s3:Get*",
                "s3:List*",
                "secretsmanager:Describe*",
                "secretsmanager:GetResourcePolicy",
                "secretsmanager:List*",
                "securityhub:BatchGetStandardsControlAssociations",
                "securityhub:Describe*",
                "securityhub:Get*",
                "securityhub:List*",
                "ses:BatchGetMetricData",
                "ses:Describe*",
                "ses:Get*",
                "ses:List*",
                "shield:Describe*",
                "shield:Get*",
                "shield:List*",
                "sns:Check*",
                "sns:Get*",
                "sns:List*",
                "sso-directory:Describe*",
                "sso-directory:List*",
                "sso-directory:Search*",
                "sso:Describe*",
                "sso:Get*",
                "sso:List*",
                "sso:Search*",
                "sts:GetAccessKeyInfo",
                "sts:GetCallerIdentity",
                "sts:GetSessionToken",
                "support:DescribeCases",
                "supportplans:GetSupportPlan",
                "supportplans:GetSupportPlanUpdateStatus",
                "tag:DescribeReportCreation",
                "tag:Get*",
                "trustedadvisor:Describe*",
                "waf-regional:Get*",
                "waf-regional:List*",
                "waf:Get*",
                "waf:List*",
                "wafv2:CheckCapacity",
                "wafv2:Describe*",
                "wafv2:Get*",
                "wafv2:List*",
                "controltower:Get*",
                "controltower:List*",
                "controltower:Describe*"
            ],
            "Resource": "*"
        }
    ]
}

OU access

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "organizations:ListOrganizationalUnitsForParent",
                "organizations:DescribeOrganizationalUnit",
                "organizations:ListAccountsForParent",
                "organizations:DescribeAccount",
                "organizations:ListAccounts",
                "organizations:ListRoots",
                "organizations:ListParents",
                "controltower:*"
            ],
            "Resource": "*"
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment