Closed sylwit closed 2 years ago
Hi @sylwit, sorry to hear you ran into this issue. Please reach out to the AWS team that maintains the AFT implementation and module this tutorial relies on for more guidance! https://github.com/aws-ia/terraform-aws-control_tower_account_factory
@ritsok But their module is correct as you can see here
They define the default as an empty string instead of null like done in this example.
Hi,
I tried to create an account without account_customizations_name param and I received a 400 error in codebuild.
ValidationException: Supplied AttributeValue is empty, must contain exactly one of the supported datatypes
The account_customizations_name default value default to null but this is an invalid value for dynamoDB, hence the default can't be applied https://github.com/hashicorp/learn-terraform-aft-account-request/blob/main/terraform/modules/aft-account-request/variables.tf#L42
account_customizations_name = { S = var.account_customizations_name }
a string can't be nullI'll be happy to make a fix but I don't know how you want to handle that. Switching the default for empty instead of null ?