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

Add options for SSH identity file and passphrase to Docker provider #268

Open ghost opened 4 years ago

ghost commented 4 years ago

This issue was originally opened by @johschmitz as hashicorp/terraform#24965. It was migrated here as a result of the provider split. The original body of the issue is below.


Current Terraform Version

Terraform v0.12.25

Use-cases

Deploy Docker container with Terraform Provider

Attempted Solutions

Terraform provides a feature to deploy a docker container using SSH

provider "docker" {
  host = "ssh://user@remote-host:22"
}

However there seems to be no explicit way to provide the path to an SSH identity file (private key). The only implicit workaround seems to be creating an SSH config file on the machine that runs Terraform to specify the identity file.

Proposal

Add two options:

identity_file passphrase

Use this information in the SSH systemcall.

References

none