SCP::IAM::Group

SCP::IAM::Group

SCP::IAM::Group

Description

An IAM Group that bundles IAM users and binds policies to them, enabling collective permission management. Users added to the group inherit the policies bound to it.

Version

1.4.0

Syntax

To declare this entity in your Infrastructure Builder template, use the following syntax:

JSON

{
  "Type" : "SCP::IAM::Group",
  "Properties" : {
    "Name" : "String",
    "Description" : "String",
    "PolicyIds" : [String],
    "UserIds" : [String]
  }
}

YAML

Type: SCP::IAM::Group
Properties:
  Name: String
  Description: String
  PolicyIds: [String]
  UserIds: [String]

Properties

Name

The name of the group. It identifies the group within the domain and cannot be changed after creation. - minLength : 3 - maxLength : 24 - pattern : ^[a-zA-Z0-9-.,_+=@ㄱ-ㅎㅏ-ㅣ가-힣]*$

AttributeValue
RequiredYes
TypeString
Pattern^[a-zA-Z0-9\-.,_+=@ㄱ-ㅎㅏ-ㅣ가-힣]*$
Length constraints3–24
Update requiresNo interruption

Description

A brief explanation or note about this group that identifies the purpose or usage of the group. - maxLength : 1000

AttributeValue
RequiredNo
TypeString
Length constraintsMax: 1000
Update requiresNo interruption

PolicyIds

The list of policy IDs to bind to the group. Members of the group are granted the permissions defined in these policies.

AttributeValue
RequiredNo
TypeArray of String
Update requiresNo interruption

UserIds

The list of user IDs to add as members of the group. A member user inherits all policies bound to the group.

AttributeValue
RequiredNo
TypeArray of String
Update requiresNo interruption

Return Values

Ref

When you pass the logical ID of this resource to the Ref function, Ref returns the value of the Id.

Fn::GetAtt

AttributeDescription
NameThe name of the group. It identifies the group within the domain and cannot be changed after creation. - minLength : 3 - maxLength : 24 - pattern : ^[a-zA-Z0-9-.,_+=@ㄱ-ㅎㅏ-ㅣ가-힣]*$
DescriptionA brief explanation or note about this group that identifies the purpose or usage of the group. - maxLength : 1000
PolicyIdsThe list of policy IDs to bind to the group. Members of the group are granted the permissions defined in these policies.
UserIdsThe list of user IDs to add as members of the group. A member user inherits all policies bound to the group.
TypeThe type of the group.
SrnThe Samsung resource name (SRN) of the group.
DomainNameThe domain name where the group belongs.
ServiceTypeThe service type of the group.
ServiceNameThe service name of the group.
ResourceTypeThe resource type of the group.
CreatorNameThe name of the user who created the group.
CreatorEmailThe email of the user who created the group.
ModifierNameThe name of the user who last modified the group.
ModifierEmailThe email of the user who last modified the group.

Sample Template

Create an IAM user and group, join the group

Creates a user and a group, and joins the user to the group

SCPTemplateFormatVersion: '2026-01-01'
Description: 'IAM 사용자/그룹 생성 및 그룹 가입 샘플'

Parameters:
  AccountId:
    Type: String
    Description: 사용자를 생성할 계정 ID
  UserName:
    Type: String
    Description: 사용자 이름 (변경 시 리소스 교체)
  UserPassword:
    Type: String
    NoEcho: true
    Description: 사용자 비밀번호 (최초 로그인 후 변경 권장)
  GroupName:
    Type: String
    Default: example-group
    Description: 그룹 이름 (3~24자)

Resources:
  ExampleGroup:
    Type: SCP::IAM::Group
    Properties:
      Name: !Ref GroupName
      Description: 예제 그룹
      UserIds:
        - !Ref ExampleUser
  ExampleUser:
    Type: SCP::IAM::User
    Properties:
      AccountId: !Ref AccountId
      UserName: !Ref UserName
      TemporaryPassword: true
      Password: !Ref UserPassword
      Description: 예제 사용자

Outputs:
  UserId:
    Description: 생성된 사용자의 ID
    Value: !Ref ExampleUser
  GroupId:
    Description: 생성된 그룹의 ID
    Value: !Ref ExampleGroup

Create an IAM policy and attach it to a group and role

Creates a policy and attaches it to a group and a role

SCPTemplateFormatVersion: '2026-01-01'
Description: 'IAM 정책 생성 및 그룹/역할 연결 샘플'

Parameters:
  PolicyName:
    Type: String
    Default: example-policy
    Description: 정책 이름 (3~128자)
  GroupName:
    Type: String
    Description: 정책을 부여할 그룹 이름 (3~24자)
  RoleName:
    Type: String
    Description: 정책을 부여할 역할 이름 (1~64자)
  TrustedAccountId:
    Type: String
    Description: 역할을 Assume 할 계정 ID

Resources:
  ExamplePolicy:
    Type: SCP::IAM::Policy
    Properties:
      PolicyName: !Ref PolicyName
      Description: 예제 정책
      PolicyVersion:
        PolicyVersionName: POLICY_VERSION_1
        PolicyDocument:
          Version: '2024-07-01'
          Statement:
            - Sid: ReadOnly
              Effect: Allow
              Action:
                - 'iam:Get*'
                - 'iam:List*'
                - 'iam:Show*'
              Resource:
                - '*'
  ExampleGroup:
    Type: SCP::IAM::Group
    Properties:
      Name: !Ref GroupName
      Description: 정책이 연결된 그룹
      PolicyIds:
        - !Ref ExamplePolicy
  ExampleRole:
    Type: SCP::IAM::Role
    Properties:
      Name: !Ref RoleName
      Description: 정책이 연결된 역할
      PolicyIds:
        - !Ref ExamplePolicy
      Principals:
        - Type: ACCOUNT
          Value: !Ref TrustedAccountId

Outputs:
  PolicyId:
    Description: 생성된 정책의 ID
    Value: !Ref ExamplePolicy