TF Error "The given key does not identify an element in this collection value" when deploying account baseline #20
-
I am currently going through the quick start and I have just deployed the accounts successfully via But when I run `Planning failed. Terraform encountered an error while generating this plan. ╷ Checking the account map I see the line: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I would make sure that the actual root account name is specified in # stacks/catalog/account-map.yaml
components:
terraform:
account-map:
vars:
root_account_aws_name: root # <---- this is your unique name for your root account. It depends on whatever you named the account when created
root_account_account_name: core-root # <---- this is always "core-root" with the default refarch |
Beta Was this translation helpful? Give feedback.
Behind the scenes,
account-map
will map theroot_account_aws_name
toroot_account_account_name
for the object used in every other component's providers.tf. So after correcting that value, make sure to reapplyaccount-map
and then tryaccount-settings
again