1.0
1.0
scpcli iam role create
--version <value>
--statement <value>
--policy_ids <value>
--name <value>
[--account_id <value>]
[--description <value>]
[--max_session_duration <value>]
[--principals <value>]
[--tags <value>]
Description
Create role
상태 ACTIVE (DEPRECATED)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | 20260223 |
Parameters
| Name | Type | Description | Example |
|---|---|---|---|
| version required | string | Policy Version | 2024-07-01 |
| statement required | array | Statement | '{"Action": ["iam:*"], "Condition": {"StringEquals": {"scp:RequestedRegion": ["kr-west1"]}}, "Effect": "Allow", "NotAction": [], "Principal": [], "Resource": ["*"], "Sid": "Statement1"}' |
| policy_ids required | array | 역할에 연결할 정책 ID 목록 | 37f2e31ff86b415698d7e8eeafab445d |
| name required | string | 역할명 | - |
| account_id optional | string | 역할이 속한 계정의 ID | - |
| description optional | string | 역할 설명 | - |
| max_session_duration optional | integer | 역할 세션 최대 지속 시간(초) | 3600 |
| principals optional | array | 신뢰 정책 수행 주체 목록 | '{"type": "", "value": ""}' |
| tags optional | array | 역할 태그 | {'key': 'company', 'value': 'SDS'} |
Responses
| Name | Description | Example |
|---|---|---|
| id | ID | f39c460fade34fecb05ede8f904b24b7 |
| account_id | 역할이 속한 계정의 ID | |
| assume_role_policy_document | 역할 신뢰 정책 | |
| created_at | 생성 일시 | 2024-05-17T00:23:17Z |
| created_by | 생성자 | ef50cdc207f05f6fb8f20219f229ed1f |
| creator_email | 생성자 Email | |
| creator_name | 생성자 성, 이름 | |
| description | 역할 설명 | |
| max_session_duration | 역할 세션 최대 지속 시간(초) | |
| modified_at | 수정 일시 | 2024-05-17T00:23:17Z |
| modified_by | 수정자 | ef50cdc207f05f6fb8f20219f229ed1f |
| modifier_email | 수정자 Email | |
| modifier_name | 수정자 성, 이름 | |
| name | 역할명 | |
| policies | 역할에 연결된 정책 목록 | |
| type | 역할 유형 |