Skip to content

Conversation

joekhoobyar
Copy link

You can't make the account ID a number, because then leading zeroes will get stripped and you'll get this error:

Assume the account Id is "012345678901"

│ Error: "account_id" doesn't look like AWS Account ID (exactly 12 digits): "12345678901" │
│ with module.securityhub-member[0].aws_securityhub_member.this["12345678901"],
│ on .terraform/modules/securityhub-member/modules/organizations_member/main.tf line 7, in resource "aws_securityhub_member" "this":
│ 7: account_id = each.value.account_id

You can't make the account ID a number, because then leading zeroes will get stripped and you'll get this error:

Assume the account Id is "012345678901"
╷
│ Error: "account_id" doesn't look like AWS Account ID (exactly 12 digits): "12345678901"
│
│   with module.securityhub-member[0].aws_securityhub_member.this["12345678901"],
│   on .terraform/modules/securityhub-member/modules/organizations_member/main.tf line 7, in resource "aws_securityhub_member" "this":
│    7:   account_id = each.value.account_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant