Loading...
Loading...
I have the following provider below with variable block. I have played with different combinations and tried using local as well. trying to get it so that when I perform a terrform apply/plan it will lookup a map and use the value in that map as the profile name. However it keeps asking me for the value as if it's not there. ### Terraform Version terraform -v Terraform v0.12.9 + provider.aws v2.31.0 + provider.local v1.4.0 + provider.null v2.1.2 + provider.random v2.2.1 + provider.template v2.1.0 ### Terraform Configuration Files ``` provider "aws" { profile = "${lookup(var.workspace2profile, terraform.workspace, "dev")}" region = "${var.aws_region}" } have the following variable variable "workspace2profile" { description = "A map from environment workspaces for profiles" type = "map" default = { dev-aws = "dev" } } ```
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.