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

Swarm Secret Data Source #302

Open
taiidani opened this issue Oct 28, 2020 · 0 comments
Open

Swarm Secret Data Source #302

taiidani opened this issue Oct 28, 2020 · 0 comments

Comments

@taiidani
Copy link

Terraform Version

0.12.29

Affected Resource(s)

New resource request, for a docker_secret data source

Expected Behavior

My team uses an external automation to load Secrets into our Swarm. However, we're also trying to use the docker_service resource. That resource requires the secret_id which is an output of the docker_secret resource...but that resource does not support importing.

Expected behavior of the provider would be a docker_secret data source to match the docker_secret resource. The data source would be able to take the name of the secret and output its id.

Actual Behavior

We have to either not use Secrets in our Swarm when using this provider, or manually look up and then hardcode their ids into our docker_service definitions.

Steps to Reproduce

Attempt to define a docker_service resource that uses a secret that was not created by a docker_secret resource.

Important Factoids

I'd be happy to give a PR a shot if there is an interest from the maintainers!

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