I have outputs in a module like:
ap_ACCOUNT_REGION_vpc, ap_ACCOUNT_eks_REGION_subnets
so in my code I’m trying to do:
vpc_id = module.ap-globals.ap_"${var.account}"_"${var.region}"_vpc
subnet_ids = module.ap-globals.ap_"${var.account}"_eks_"${var.region}"_subnets
But it’s not working.
Any suggestions on formatting this?
The source module for ap-globals doesn’t do anything other then have outputs of static ids.
Error is:
│ Error: Missing newline after argument
│
│ on eks.tf line 22, in module "eks":
│ 22: vpc_id = module.ap-globals.ap_"${var.account}"_"${var.region}"_vpc
│
│ An argument definition must end with a newline.