Create account alias
Create account alias.

Usage

1
tkm org accounts create-alias \
2
--account-id <account-id> \
3
--alias <alias>
Copied!

Positional arguments

This command has no positional arguments.

Options

In addition to the common options, this command has the following options.
    --account-id <account id>
      Account id. Required.
    --alias <alias>
      Account alias to create. Required.

IAM permissions

These are the minimum IAM permissions required to run this command.
1
# Permission needed to assume a role from the target account
2
# used to create the account alias.
3
Statement:
4
- Effect: Allow
5
Action: sts:AssumeRole
6
Resource: "*"
Copied!
The role in the target account must have the following permissions.
1
Statement:
2
- Effect: Allow
3
Action: iam:CreateAccountAlias
4
Resource: "*"
Copied!

Examples

Create account alias
1
tkm org accounts create-alias \
2
--account-id 123456789012 \
3
--alias my-account-alias
Copied!
Last modified 4mo ago