You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered: