Skip to main content
IAM Policy Map

AWSQuickSetupPatchPolicyDeploymentRolePolicy

OperatorAWS managedActivePermissions reviewedShow on mapCompare

Summary

Provides permissions that allow Quick Setup to create resources associated with a patch policy configuration.

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/AWSQuickSetupPatchPolicyDeploymentRolePolicy
Default version
v2
Created
Last edited
Services
cloudformation, iam, lambda, logs, resource-groups, s3, ssm

Control-plane actions (170)

By access level: 23 List, 16 Permissions management, 68 Read, 13 Tagging, 50 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
CloudFormation15 of 1042 List, 5 Read, 2 Tagging, 6 Write; 12 restricted, 2 conditionalcloudformation:CreateChangeSet, cloudformation:CreateStack, cloudformation:DeleteChangeSet, cloudformation:DeleteStack, cloudformation:DescribeChangeSet, cloudformation:DescribeStackDriftDetectionStatus, cloudformation:DescribeStackResourceDrifts, cloudformation:DescribeStacks, cloudformation:DetectStackDrift, cloudformation:DetectStackResourceDrift, cloudformation:ExecuteChangeSet, cloudformation:ListStacks and 3 more
IAM17 of 1903 List, 5 Permissions management, 2 Read, 2 Tagging, 5 Write; 17 restricted, 17 conditionaliam:AttachRolePolicy, iam:CreateRole, iam:CreateServiceLinkedRole, iam:DeleteRole, iam:DeleteRolePolicy, iam:DetachRolePolicy, iam:GetRole, iam:GetRolePolicy, iam:ListAttachedRolePolicies, iam:ListRolePolicies, iam:ListRoleTags, iam:PassRole and 5 more
Lambda11 of 1212 Read, 2 Tagging, 7 Write; 11 restricted, 11 conditionallambda:CreateFunction, lambda:DeleteFunction, lambda:GetFunction, lambda:ListTags, lambda:TagResource, lambda:UntagResource, lambda:UpdateFunction*
CloudWatch Logs7 of 1332 List, 2 Tagging, 3 Write; 6 restricted, 6 conditionallogs:CreateLogGroup, logs:DeleteLogGroup, logs:DescribeLogGroups, logs:ListTagsForResource, logs:PutRetentionPolicy, logs:TagResource, logs:UntagResource
Resource Groups1 of 291 Read; 0 restricted, 0 conditionalresource-groups:GetGroupQuery
S3106 of 15515 List, 11 Permissions management, 55 Read, 3 Tagging, 22 Write; 105 restricted, 105 conditionals3:CreateBucket, s3:DeleteBucket, s3:DeleteBucketPolicy, s3:Get*, s3:List*, s3:ListAllMyBuckets, s3:Put*
Systems Manager13 of 1641 List, 3 Read, 2 Tagging, 7 Write; 12 restricted, 11 conditionalssm:AddTagsToResource, ssm:CreateAssociation, ssm:CreateDocument, ssm:DeleteAssociation, ssm:DeleteDocument, ssm:DescribeAssociation, ssm:DescribeDocument, ssm:GetDocument, ssm:ListTagsForResource, ssm:RemoveTagsFromResource, ssm:UpdateAssociation, ssm:UpdateDocument and 1 more
CloudFormation: 15 actions
  • cloudformation:CreateChangeSet (Write)
  • cloudformation:CreateStack (Write)
  • cloudformation:DeleteChangeSet (Write)
  • cloudformation:DeleteStack (Write)
  • cloudformation:DescribeChangeSet (Read)
  • cloudformation:DescribeStackDriftDetectionStatus (Read)
  • cloudformation:DescribeStackResourceDrifts (Read)
  • cloudformation:DescribeStacks (List)
  • cloudformation:DetectStackDrift (Read)
  • cloudformation:DetectStackResourceDrift (Read)
  • cloudformation:ExecuteChangeSet (Write)
  • cloudformation:ListStacks (List)
  • cloudformation:TagResource (Tagging)
  • cloudformation:UntagResource (Tagging)
  • cloudformation:UpdateStack (Write)
IAM: 17 actions
  • iam:AttachRolePolicy (Permissions management)
  • iam:CreateRole (Write)
  • iam:CreateServiceLinkedRole (Write)
  • iam:DeleteRole (Write)
  • iam:DeleteRolePolicy (Permissions management)
  • iam:DetachRolePolicy (Permissions management)
  • iam:GetRole (Read)
  • iam:GetRolePolicy (Read)
  • iam:ListAttachedRolePolicies (List)
  • iam:ListRolePolicies (List)
  • iam:ListRoleTags (List)
  • iam:PassRole (Write)
  • iam:PutRolePermissionsBoundary (Permissions management)
  • iam:PutRolePolicy (Permissions management)
  • iam:TagRole (Tagging)
  • iam:UntagRole (Tagging)
  • iam:UpdateRole (Write)
Lambda: 11 actions
  • lambda:CreateFunction (Write)
  • lambda:DeleteFunction (Write)
  • lambda:GetFunction (Read)
  • lambda:ListTags (Read)
  • lambda:TagResource (Tagging)
  • lambda:UntagResource (Tagging)
  • lambda:UpdateFunctionCode (Write)
  • lambda:UpdateFunctionCodeSigningConfig (Write)
  • lambda:UpdateFunctionConfiguration (Write)
  • lambda:UpdateFunctionEventInvokeConfig (Write)
  • lambda:UpdateFunctionUrlConfig (Write)
CloudWatch Logs: 7 actions
  • logs:CreateLogGroup (Write)
  • logs:DeleteLogGroup (Write)
  • logs:DescribeLogGroups (List)
  • logs:ListTagsForResource (List)
  • logs:PutRetentionPolicy (Write)
  • logs:TagResource (Tagging)
  • logs:UntagResource (Tagging)
Resource Groups: 1 actions
  • resource-groups:GetGroupQuery (Read)
S3: 106 actions
  • s3:CreateBucket (Write)
  • s3:DeleteBucket (Write)
  • s3:DeleteBucketPolicy (Permissions management)
  • s3:GetAccelerateConfiguration (Read)
  • s3:GetAccessGrant (Read)
  • s3:GetAccessGrantsInstance (Read)
  • s3:GetAccessGrantsInstanceForPrefix (Read)
  • s3:GetAccessGrantsInstanceResourcePolicy (Read)
  • s3:GetAccessGrantsLocation (Read)
  • s3:GetAccessPoint (Read)
  • s3:GetAccessPointConfigurationForObjectLambda (Read)
  • s3:GetAccessPointForObjectLambda (Read)
  • s3:GetAccessPointPolicy (Read)
  • s3:GetAccessPointPolicyForObjectLambda (Read)
  • s3:GetAccessPointPolicyStatus (Read)
  • s3:GetAccessPointPolicyStatusForObjectLambda (Read)
  • s3:GetAccountPublicAccessBlock (Read)
  • s3:GetAnalyticsConfiguration (Read)
  • s3:GetBucketAbac (Read)
  • s3:GetBucketAcl (Read)
  • s3:GetBucketCORS (Read)
  • s3:GetBucketLocation (Read)
  • s3:GetBucketLogging (Read)
  • s3:GetBucketMetadataTableConfiguration (Read)
  • s3:GetBucketNotification (Read)
  • s3:GetBucketObjectLockConfiguration (Read)
  • s3:GetBucketOwnershipControls (Read)
  • s3:GetBucketPolicy (Read)
  • s3:GetBucketPolicyStatus (Read)
  • s3:GetBucketPublicAccessBlock (Read)
  • s3:GetBucketRequestPayment (Read)
  • s3:GetBucketTagging (Read)
  • s3:GetBucketVersioning (Read)
  • s3:GetBucketWebsite (Read)
  • s3:GetDataAccess (Read)
  • s3:GetEncryptionConfiguration (Read)
  • s3:GetIntelligentTieringConfiguration (Read)
  • s3:GetInventoryConfiguration (Read)
  • s3:GetJobTagging (Read)
  • s3:GetLifecycleConfiguration (Read)
  • s3:GetMetricsConfiguration (Read)
  • s3:GetMultiRegionAccessPoint (Read)
  • s3:GetMultiRegionAccessPointPolicy (Read)
  • s3:GetMultiRegionAccessPointPolicyStatus (Read)
  • s3:GetMultiRegionAccessPointRoutes (Read)
  • s3:GetObjectAnnotation (Read)
  • s3:GetObjectAttributes (Read)
  • s3:GetObjectTorrent (Read)
  • s3:GetObjectVersionAnnotation (Read)
  • s3:GetObjectVersionAnnotationForReplication (Read)
  • s3:GetObjectVersionAttributes (Read)
  • s3:GetObjectVersionForReplication (Read)
  • s3:GetObjectVersionTorrent (Read)
  • s3:GetReplicationConfiguration (Read)
  • s3:GetStorageLensConfiguration (Read)
  • s3:GetStorageLensConfigurationTagging (Read)
  • s3:GetStorageLensDashboard (Read)
  • s3:GetStorageLensGroup (Read)
  • s3:ListAccessGrants (List)
  • s3:ListAccessGrantsInstances (List)
  • s3:ListAccessGrantsLocations (List)
  • s3:ListAccessPoints (List)
  • s3:ListAccessPointsForObjectLambda (List)
  • s3:ListAllMyBuckets (List)
  • s3:ListBucketMultipartUploads (List)
  • s3:ListCallerAccessGrants (List)
  • s3:ListJobs (List)
  • s3:ListMultiRegionAccessPoints (List)
  • s3:ListObjectAnnotations (List)
  • s3:ListObjectVersionAnnotations (List)
  • s3:ListStorageLensConfigurations (List)
  • s3:ListStorageLensGroups (List)
  • s3:ListTagsForResource (List)
  • s3:PutAccelerateConfiguration (Write)
  • s3:PutAccessGrantsInstanceResourcePolicy (Permissions management)
  • s3:PutAccessPointConfigurationForObjectLambda (Write)
  • s3:PutAccessPointPolicy (Permissions management)
  • s3:PutAccessPointPolicyForObjectLambda (Permissions management)
  • s3:PutAccessPointPublicAccessBlock (Permissions management)
  • s3:PutAccountPublicAccessBlock (Permissions management)
  • s3:PutAnalyticsConfiguration (Write)
  • s3:PutBucketAbac (Write)
  • s3:PutBucketAcl (Permissions management)
  • s3:PutBucketCORS (Write)
  • s3:PutBucketLogging (Write)
  • s3:PutBucketNotification (Write)
  • s3:PutBucketObjectLockConfiguration (Write)
  • s3:PutBucketOwnershipControls (Permissions management)
  • s3:PutBucketPolicy (Permissions management)
  • s3:PutBucketPublicAccessBlock (Permissions management)
  • s3:PutBucketRequestPayment (Write)
  • s3:PutBucketTagging (Tagging)
  • s3:PutBucketVersioning (Write)
  • s3:PutBucketWebsite (Write)
  • s3:PutEncryptionConfiguration (Write)
  • s3:PutIntelligentTieringConfiguration (Write)
  • s3:PutInventoryConfiguration (Write)
  • s3:PutJobTagging (Tagging)
  • s3:PutLifecycleConfiguration (Write)
  • s3:PutMetricsConfiguration (Write)
  • s3:PutMultiRegionAccessPointPolicy (Permissions management)
  • s3:PutObjectAnnotation (Write)
  • s3:PutObjectVersionAnnotation (Write)
  • s3:PutReplicationConfiguration (Write)
  • s3:PutStorageLensConfiguration (Write)
  • s3:PutStorageLensConfigurationTagging (Tagging)
Systems Manager: 13 actions
  • ssm:AddTagsToResource (Tagging)
  • ssm:CreateAssociation (Write)
  • ssm:CreateDocument (Write)
  • ssm:DeleteAssociation (Write)
  • ssm:DeleteDocument (Write)
  • ssm:DescribeAssociation (Read)
  • ssm:DescribeDocument (Read)
  • ssm:GetDocument (Read)
  • ssm:ListTagsForResource (List)
  • ssm:RemoveTagsFromResource (Tagging)
  • ssm:UpdateAssociation (Write)
  • ssm:UpdateDocument (Write)
  • ssm:UpdateDocumentDefaultVersion (Write)

Data-plane actions (19)

By access level: 3 List, 2 Permissions management, 8 Read, 2 Tagging, 4 Write.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
Lambda1 of 141 Write; 1 restricted, 1 conditionallambda:InvokeFunction
S318 of 253 List, 2 Permissions management, 8 Read, 2 Tagging, 3 Write; 18 restricted, 18 conditionals3:Get*, s3:List*, s3:Put*
Lambda: 1 actions
  • lambda:InvokeFunction (Write)
S3: 18 actions
  • s3:GetObject (Read)
  • s3:GetObjectAcl (Read)
  • s3:GetObjectLegalHold (Read)
  • s3:GetObjectRetention (Read)
  • s3:GetObjectTagging (Read)
  • s3:GetObjectVersion (Read)
  • s3:GetObjectVersionAcl (Read)
  • s3:GetObjectVersionTagging (Read)
  • s3:ListBucket (List)
  • s3:ListBucketVersions (List)
  • s3:ListMultipartUploadParts (List)
  • s3:PutObject (Write)
  • s3:PutObjectAcl (Permissions management)
  • s3:PutObjectLegalHold (Write)
  • s3:PutObjectRetention (Write)
  • s3:PutObjectTagging (Tagging)
  • s3:PutObjectVersionAcl (Permissions management)
  • s3:PutObjectVersionTagging (Tagging)

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: mixed.

Can be attached: Yes, to users, groups and roles.

Why this tier

  • Grants 87 write, tagging or permissions-management actions, short of full control of any service.
  • Grants data-plane write actions on a data store, but only for scoped resources or under conditions.
  • Grants iam:PassRole, but only for scoped roles or under conditions (for example iam:PassedToService).
  • Grants permissions-management actions on iam, but only for scoped resources or under conditions.

Guidance

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Same service

Same domain

Frequently asked questions

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Policy JSON

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "CfnRead",
      "Effect": "Allow",
      "Action": [
        "cloudformation:DescribeStacks",
        "cloudformation:DescribeStackDriftDetectionStatus",
        "cloudformation:ListStacks"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "CfnManage",
      "Effect": "Allow",
      "Action": [
        "cloudformation:CreateStack",
        "cloudformation:UpdateStack",
        "cloudformation:DeleteStack",
        "cloudformation:CreateChangeSet",
        "cloudformation:DeleteChangeSet",
        "cloudformation:ExecuteChangeSet",
        "cloudformation:DescribeChangeSet",
        "cloudformation:DescribeStackResourceDrifts",
        "cloudformation:DetectStackDrift",
        "cloudformation:DetectStackResourceDrift"
      ],
      "Resource": [
        "arn:aws:cloudformation:*:*:stack/StackSet-AWS-QuickSetup-*"
      ]
    },
    {
      "Sid": "RGroupsGet",
      "Effect": "Allow",
      "Action": [
        "resource-groups:GetGroupQuery"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "S3BucketsList",
      "Effect": "Allow",
      "Action": [
        "s3:ListAllMyBuckets"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "AccessLogsBucketManage",
      "Effect": "Allow",
      "Action": [
        "s3:CreateBucket",
        "s3:DeleteBucket",
        "s3:DeleteBucketPolicy",
        "s3:Put*",
        "s3:Get*",
        "s3:List*"
      ],
      "Condition": {
        "ForAnyValue:StringEquals": {
          "aws:CalledVia": [
            "cloudformation.amazonaws.com"
          ]
        },
        "StringEquals": {
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      },
      "Resource": [
        "arn:aws:s3:::aws-quicksetup-patchpolicy-access-log-*"
      ]
    },
    {
      "Sid": "LambdaManage",
      "Effect": "Allow",
      "Action": [
        "lambda:CreateFunction",
        "lambda:UpdateFunction*",
        "lambda:GetFunction",
        "lambda:ListTags",
        "lambda:TagResource",
        "lambda:DeleteFunction",
        "lambda:InvokeFunction",
        "lambda:UntagResource"
      ],
      "Condition": {
        "ForAnyValue:StringEquals": {
          "aws:CalledVia": [
            "cloudformation.amazonaws.com"
          ]
        },
        "StringEquals": {
          "aws:ResourceAccount": [
            "${aws:PrincipalAccount}"
          ]
        }
      },
      "Resource": [
        "arn:aws:lambda:*:*:function:baseline-overrides-*",
        "arn:aws:lambda:*:*:function:delete-name-tags-*"
      ]
    },
    {
      "Sid": "LogGroupsDescribe",
      "Effect": "Allow",
      "Action": [
        "logs:DescribeLogGroups"
      ],
      "Resource": "*"
    },
    {
      "Sid": "LogGroupsManage",
      "Effect": "Allow",
      "Action": [
        "logs:CreateLogGroup",
        "logs:TagResource",
        "logs:PutRetentionPolicy",
        "logs:DeleteLogGroup",
        "logs:ListTagsForResource",
        "logs:UntagResource"
      ],
      "Condition": {
        "ForAnyValue:StringEquals": {
          "aws:CalledVia": [
            "cloudformation.amazonaws.com"
          ]
        }
      },
      "Resource": [
        "arn:aws:logs:*:*:log-group:/aws/lambda/baseline-overrides-*",
        "arn:aws:logs:*:*:log-group:/aws/lambda/delete-name-tags-*"
      ]
    },
    {
      "Sid": "QSDocsManage",
      "Effect": "Allow",
      "Action": [
        "ssm:CreateDocument",
        "ssm:UpdateDocument",
        "ssm:DescribeDocument",
        "ssm:UpdateDocumentDefaultVersion",
        "ssm:DeleteDocument",
        "ssm:AddTagsToResource",
        "ssm:RemoveTagsFromResource",
        "ssm:ListTagsForResource"
      ],
      "Condition": {
        "ForAnyValue:StringEquals": {
          "aws:CalledVia": [
            "cloudformation.amazonaws.com"
          ]
        }
      },
      "Resource": [
        "arn:aws:ssm:*:*:document/AWSQuickSetup-*",
        "arn:aws:ssm:*:*:document/QuickSetup-*"
      ]
    },
    {
      "Sid": "QSDocsGet",
      "Effect": "Allow",
      "Action": [
        "ssm:GetDocument"
      ],
      "Resource": [
        "arn:aws:ssm:*:*:document/AWSQuickSetup-*",
        "arn:aws:ssm:*:*:document/QuickSetup-*",
        "arn:aws:ssm:*::document/AWS-EnableExplorer",
        "arn:aws:ssm:*::document/AWS-RunPatchBaseline"
      ]
    },
    {
      "Sid": "QSAssociationsManage",
      "Effect": "Allow",
      "Action": [
        "ssm:CreateAssociation",
        "ssm:UpdateAssociation",
        "ssm:DeleteAssociation",
        "ssm:DescribeAssociation"
      ],
      "Condition": {
        "ForAnyValue:StringEquals": {
          "aws:CalledVia": [
            "cloudformation.amazonaws.com"
          ]
        }
      },
      "Resource": [
        "arn:aws:ssm:*:*:document/AWSQuickSetup-*",
        "arn:aws:ssm:*:*:document/QuickSetup-*",
        "arn:aws:ssm:*::document/AWS-EnableExplorer",
        "arn:aws:ssm:*::document/AWS-RunPatchBaseline",
        "arn:aws:ec2:*:*:instance/*",
        "arn:aws:ssm:*:*:managed-instance/*",
        "arn:aws:ssm:*:*:association/*"
      ]
    },
    {
      "Sid": "SSMSLRCreate",
      "Effect": "Allow",
      "Action": [
        "iam:CreateServiceLinkedRole"
      ],
      "Resource": [
        "arn:aws:iam::*:role/aws-service-role/ssm.amazonaws.com/AWSServiceRoleForAmazonSSM"
      ],
      "Condition": {
        "StringEquals": {
          "iam:AWSServiceName": "ssm.amazonaws.com"
        }
      }
    },
    {
      "Sid": "ConfigRoleManage",
      "Effect": "Allow",
      "Action": [
        "iam:TagRole",
        "iam:UntagRole",
        "iam:GetRole",
        "iam:UpdateRole",
        "iam:DeleteRole",
        "iam:GetRolePolicy",
        "iam:ListAttachedRolePolicies",
        "iam:ListRolePolicies",
        "iam:ListRoleTags"
      ],
      "Condition": {
        "ForAnyValue:StringEquals": {
          "aws:CalledVia": [
            "cloudformation.amazonaws.com"
          ]
        }
      },
      "Resource": [
        "arn:aws:iam::*:role/AWS-QuickSetup-*"
      ]
    },
    {
      "Sid": "ConfigRolePassToSSM",
      "Effect": "Allow",
      "Action": [
        "iam:PassRole"
      ],
      "Resource": [
        "arn:aws:iam::*:role/AWS-QuickSetup-*"
      ],
      "Condition": {
        "StringEquals": {
          "iam:PassedToService": [
            "ssm.amazonaws.com"
          ]
        }
      }
    },
    {
      "Sid": "ConfigRolePassToLambda",
      "Effect": "Allow",
      "Action": [
        "iam:PassRole"
      ],
      "Resource": [
        "arn:aws:iam::*:role/AWS-QuickSetup-*"
      ],
      "Condition": {
        "StringEquals": {
          "iam:PassedToService": [
            "lambda.amazonaws.com"
          ]
        }
      }
    },
    {
      "Sid": "DocDescribe",
      "Effect": "Allow",
      "Action": [
        "ssm:DescribeDocument"
      ],
      "Resource": "*"
    },
    {
      "Sid": "LegacyDocClean",
      "Effect": "Allow",
      "Action": [
        "ssm:DeleteDocument"
      ],
      "Resource": "*",
      "Condition": {
        "StringLike": {
          "aws:ResourceTag/QuickSetupID": "*"
        }
      }
    },
    {
      "Sid": "LegacyIAMClean",
      "Effect": "Allow",
      "Action": [
        "iam:DeleteRole",
        "iam:DeleteRolePolicy"
      ],
      "Resource": "arn:aws:iam::*:role/*QuickSetup-*",
      "Condition": {
        "StringLike": {
          "aws:ResourceTag/QuickSetupID": "*"
        }
      }
    },
    {
      "Sid": "ConfigRoleBoundedManage",
      "Effect": "Allow",
      "Action": [
        "iam:CreateRole",
        "iam:AttachRolePolicy",
        "iam:DeleteRolePolicy",
        "iam:DetachRolePolicy",
        "iam:PutRolePolicy",
        "iam:PutRolePermissionsBoundary"
      ],
      "Condition": {
        "StringEquals": {
          "iam:PermissionsBoundary": "arn:aws:iam::aws:policy/AWSQuickSetupPatchPolicyPermissionsBoundary"
        },
        "ForAnyValue:StringEquals": {
          "aws:CalledVia": [
            "cloudformation.amazonaws.com"
          ]
        }
      },
      "Resource": [
        "arn:aws:iam::*:role/AWS-QuickSetup-*"
      ]
    },
    {
      "Sid": "CfnTagOnMutate",
      "Effect": "Allow",
      "Action": [
        "cloudformation:TagResource",
        "cloudformation:UntagResource"
      ],
      "Resource": [
        "arn:aws:cloudformation:*:*:stack/StackSet-AWS-QuickSetup-*"
      ],
      "Condition": {
        "StringEquals": {
          "cloudformation:CreateAction": [
            "CreateStack",
            "UpdateStack",
            "CreateChangeSet",
            "ExecuteChangeSet"
          ]
        }
      }
    }
  ]
}

Version history

Current version v2, edited by AWS on 2026-09-04. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.

Attach snippets

AWS CLI

aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/AWSQuickSetupPatchPolicyDeploymentRolePolicy
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWSQuickSetupPatchPolicyDeploymentRolePolicy
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWSQuickSetupPatchPolicyDeploymentRolePolicy

CloudFormation

Resources:
  ExampleRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument: {}  # replace with your trust policy
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/AWSQuickSetupPatchPolicyDeploymentRolePolicy

Terraform

resource "aws_iam_role_policy_attachment" "awsquicksetuppatchpolicydeploymentrolepolicy" {
  role       = aws_iam_role.example.name
  policy_arn = "arn:aws:iam::aws:policy/AWSQuickSetupPatchPolicyDeploymentRolePolicy"
}

CDK (TypeScript)

role.addManagedPolicy(
  iam.ManagedPolicy.fromAwsManagedPolicyName("AWSQuickSetupPatchPolicyDeploymentRolePolicy"),
);

Sources

Pending editorial review. No editorial sources are listed yet.