Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inability to use an account Id with leading zeroes #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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