Skip to content

getting an error on tf-run apply tag:setup-complete #9

Open
garla019 opened this issue May 2, 2023 · 0 comments
Open

getting an error on tf-run apply tag:setup-complete #9

garla019 opened this issue May 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@garla019
Copy link

garla019 commented May 2, 2023

Describe the bug
Error: Invalid for_each argument
 on .terraform/modules/route53_main_west/route53-zone-association/zone/main.tf line 22, in resource "aws_route53_vpc_association_authorization" "self_zone":
  22:   for_each   = data.aws_caller_identity.self.account_id != data.aws_caller_identity.peer.account_id ? toset(var.zone_ids) : toset([])
    ├────────────────
    │ data.aws_caller_identity.peer.account_id is "057405694017"
    │ data.aws_caller_identity.self.account_id is "818199694861"
    │ var.zone_ids is list of string with 1 element

The "for_each" set includes values derived from resource attributes that
cannot be determined until apply, and so Terraform cannot determine the full
set of keys that will identify the instances of this resource.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots
If applicable, add pasted text output from terraform plan or apply (or a screenshot, but text is preferred) to help explain your problem.

Server (please complete the following information):
iebcloud
branch: eks-edl-app-dev1
818199694861-do3-ma3-gov/vpc/west/vpc2/apps/eks-edl-app-dev1

Additional context
apply.20230502.1683059802.log

@garla019 garla019 added the bug Something isn't working label May 2, 2023
Sign in to join this conversation on GitHub.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant