terraform-provider-docker/docs/resources/config.md
2021-05-16 15:44:59 +02:00

844 B

page_title subcategory description
docker_config Resource - terraform-provider-docker Manages the configs of a Docker service in a swarm.

docker_config (Resource)

Manages the configs of a Docker service in a swarm.

Example Usage

resource "docker_config" "foo_config" {
  name = "foo_config"
  data = "ewogICJzZXJIfQo="
}

Schema

Required

  • data (String, Sensitive) Base64-url-safe-encoded config data
  • name (String) User-defined name of the config

Optional

  • id (String) The ID of this resource.

Import

Import is supported using the following syntax:

#!/bin/bash
$ terraform import docker_config.foo "$(docker config inspect -f {{.ID}} p73)"