-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try to setup provisioner infrastructure with Terraform Cloud #177
Conversation
Configured the Terraform Cloud |
Disabled Unifi SSH access and enabled port forwarding to the provisioner SSH. |
Seemed the https://registry.terraform.io/modules/flaupretre/tunnel/ssh/latest module failed due to an invalid private key used! Generating a new one using
uploading that to Terraform Cloud and updating the provisioner authorized_keys resulted in a working deploy! |
Also tried a different key with https://registry.terraform.io/providers/thecadams/ssh/latest but unfortunately that did not work. Currently only https://registry.terraform.io/modules/flaupretre/tunnel/ssh/latest is working in Terraform Cloud remote execution. |
Let's create our own module
|
Going to try a different route with Pulumi. |
ref #176
Tried a couple of modules/providers to setup a SSH tunnel to the Kubernetes cluster from Terraform Cloud but no luck so far.
Terraform provider jumphost does not work because of jaysonsantos/terraform-provider-jumphost#7, the provider is killed and takes the ssh connection with it. Does not work locally and Terraform Cloud.
The https://registry.terraform.io/modules/flaupretre/tunnel/ssh/latest module does not work because it always tries to authenticate with password instead of using the actual passed in identity file. Works with local execution.
The https://registry.terraform.io/providers/AndrewChubatiuk/ssh/latest/docs/data-sources/tunnel provider establishes a SSH connection but directly afterwards disconnects. This is also described in this issue AndrewChubatiuk/terraform-provider-ssh#10, but even the fork https://registry.terraform.io/providers/thecadams/ssh/latest does not work. Works with local execution.