AWS::IAM::GroupPolicyAdds or updates an inline policy document that is embedded in the specified IAM group. A group can also have managed policies attached to it. To attach a managed policy to a group, use [AWS::IAM::Group](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html). To create a new managed policy, use [AWS::IAM::ManagedPolicy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html). For information about policies, see...
3 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
GroupName | string | RequiredCreate-only |
PolicyName | string | RequiredCreate-only |
PolicyDocument | object |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::IAM::GroupPolicy
Resources:
MyResource:
Type: AWS::IAM::GroupPolicy
Properties:
PolicyName: "my-policyname"
GroupName: "my-groupname"Permissions CloudFormation needs in your IAM role to manage this resource.
iam:PutGroupPolicyiam:GetGroupPolicyiam:GetGroupPolicyiam:PutGroupPolicyiam:GetGroupPolicyiam:DeleteGroupPolicyiam:GetGroupPolicyEverything you need to know about IAM on one page. HD quality, print-friendly.
Download Free InfographicPolicyNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
PolicyNameGroupName