From 3e33b71cfddc88e653abb8e4cd33cd20c2719483 Mon Sep 17 00:00:00 2001 From: Joe Khoobyar Date: Tue, 10 Dec 2024 12:07:40 -0500 Subject: [PATCH] Fix inability to use an account Id with leading zeroes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- modules/organizations_member/variables.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/organizations_member/variables.tf b/modules/organizations_member/variables.tf index 061c9f2..8505876 100644 --- a/modules/organizations_member/variables.tf +++ b/modules/organizations_member/variables.tf @@ -4,12 +4,12 @@ variable "member_config" { description = <