hashicorp / terraform-provider-docker

As part of our introduction to self-service publishing in the Terraform Registry, this copy of the provider has been archived, and ownership has been transferred to active maintainers in the community. Please see the new location on the Terraform Registry: https://registry.terraform.io/providers/kreuzwerker/docker/latest
https://registry.terraform.io/providers/kreuzwerker/docker/latest
Mozilla Public License 2.0
132 stars 92 forks source link

Alias fails when passed to child module. #290

Open hongkongkiwi opened 4 years ago

hongkongkiwi commented 4 years ago

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
  }
}