Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ def create_account_alias(account, iam_client):
)
try:
iam_client.create_account_alias(AccountAlias=account.get("alias"))
except iam_client.exceptions.EntityAlreadyExistsException:
pass
except iam_client.exceptions.EntityAlreadyExistsException as error:
LOGGER.error(
"""The account alias security already exists.
The account alias must be unique across all Amazon Web Services products.
Refer to https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html#AboutAccountAlias"""
)
raise error
return account


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The OU name is the name of the direct parent of the account. If you want to move
- `support_level`: `basic|enterprise` ADF will raise a ticket to add the account to an existing AWS support subscription when an account is created. Currently only supports basic or enterprise.
**NB: This is for activating enterprise support on account creation only. As a prerequisite your organization master account must already have enterprise support activated**

- `alias`: AWS account alias. Must be unique globally otherwise cannot be created. Check [here](https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html) for further details. If the account alias is not created or already exists, in the Federation login page, no alias will be presented
- `alias`: AWS account alias. Must be unique globally otherwise cannot be created. Check [here](https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html) for further details. If the account alias is not created or already exists, in the Federation login page, no alias will be presented. This needs to be unique across all customers, if the alias is already taken the AccountManagementStateMachine will stop and raise an error.
- `tags`: list of tags associate to the account.

### Examples
Expand Down