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

Documentation: Example of 'env' in docker_service container_spec is incorrect #276

Closed rolandcrosby closed 4 years ago

rolandcrosby commented 4 years ago

The Advanced example for the docker_service resource shows an env block, like this:

resource "docker_service" "foo" {
  name = "tftest-service-basic"

  task_spec {
    container_spec {
      image = "repo.mycompany.com:8080/foo-service:v1"

...

      env {
        MYFOO = "BAR"
      }

This is incorrect: that value is now a regular map (env = {MYFOO = "BAR"}) as you can see in this test.

GMSteuart commented 4 years ago

pr #281

mavogel commented 4 years ago

Closed by #281