Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Alias fails when passed to child module. #290

Open
hongkongkiwi opened this issue Aug 18, 2020 · 0 comments
Open

Alias fails when passed to child module. #290

hongkongkiwi opened this issue Aug 18, 2020 · 0 comments

Comments

@hongkongkiwi
Copy link

hongkongkiwi commented Aug 18, 2020

Terraform does not correctly handle aliases for this provider when passing to child module.

Terraform v0.13.0
+ provider registry.terraform.io/terraform-providers/docker v2.7.2

For example, this will fail with error during terraform validate:
Error: missing provider provider["registry.terraform.io/hashicorp/docker"].foo

provider "docker" {
  alias = "foo"
  host = "tcp://127.0.0.1:2376/"
}

module "mycustommodule" {
  source = "./test2"
  providers = {
    docker = docker.foo
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant