ncloud_create_policy
Create custom IAM policies with explicit permissions to scope sub-account access to specific actions and resources, avoiding broad system-managed policies. Preview with dry-run or validate server-side first.
Instructions
Create a user-created (custom) IAM policy with explicit permission statements — the way to scope a sub account to specific actions and resources instead of using a broad system-managed policy. Max 500 policies per account. Use ncloud_validate_policy first for real server-side validation; dryRun=true only echoes the request shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags as a key-value map, max 20 per resource. Example: {"env":"dev","team":"a"} | |
| dryRun | No | If true, returns a preview without actually creating the policy | |
| policyName | Yes | Policy name (3-30 chars: Korean/Japanese/English letters, digits, '.', '_', '-'; must start with a letter) | |
| description | No | Description of the policy (0-300 bytes) | |
| permissions | Yes | Permission statements. Each entry allows a set of actions on a set of resource NRNs for one service |