-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Currently, the default is to tag with an AWS account alias, but this fails with an error if the account alias has not been set:
│ Error: reading IAM Account Alias: empty result
│
│ with module.observe.module.config[0].data.aws_iam_account_alias.current[0],
│ on .terraform/modules/observe/modules/config/alias.tf line 1, in data "aws_iam_account_alias" "current":
│ 1: data "aws_iam_account_alias" "current" {
│
Suggestions:
- Use
try()or some other method to gracefully handle if this is empty. - Allow manual overrides (or custom tags), in case someone wants to make use of this tag without setting an alias within AWS.
Workaround:
config = {
tag_account_alias = false
}
Metadata
Metadata
Assignees
Labels
No labels