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

41 lines
844 B
Markdown

---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "docker_config Resource - terraform-provider-docker"
subcategory: ""
description: |-
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
```terraform
resource "docker_config" "foo_config" {
name = "foo_config"
data = "ewogICJzZXJIfQo="
}
```
<!-- schema generated by tfplugindocs -->
## 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:
```shell
#!/bin/bash
$ terraform import docker_config.foo "$(docker config inspect -f {{.ID}} p73)"
```