aws-ia / terraform-aws-control_tower_account_factory

AWS Control Tower Account Factory
Apache License 2.0
604 stars 386 forks source link

Support multiple customizations #458

Open pkoneru7 opened 1 month ago

pkoneru7 commented 1 month ago

We want to use multiple customizations for some selective accounts, where as rest of accounts will have single customization. In this way AFT will process customizations based on account_customizations_name value defined in account request file.

I've checked multiple customizations specified as example and we have created few customizations accordingly in account-customizations. However, we are facing issue when we define them in the actual account request file section: For Account 1: account_customizations_name = ["customization-1"] For Account 2: account_customizations_name = ["customization-1", customization-2]

Defined account_customizations_name as list(string) in variables.tf in aft-account-request module. But this is not working as expected.

snebhu3 commented 1 week ago

@pkoneru7 thank you for reaching out. Please refer to an example here on how you can organize the Terraform modules to suit your use case with existing capability.

pkoneru7 commented 1 week ago

We have configured terraform modules similar to the example shown. However, to apply them, we define customizations name in aft-account-request account request file right. This is where we are facing issues. We are defining them as follows: For Account 1: account_customizations_name = ["customization-1"] For Account 2: account_customizations_name = ["customization-1", customization-2] but this does not work with an error because variables.tf in aft-account-request module is string for account_customizations_name field.