Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Workaround Terraform v1.1 file provisioner regression
Browse files Browse the repository at this point in the history
* Terraform v1.1 changed the behavior of provisioners and
`remote-exec` in a way that breaks support for expansions
in commands (including file provisioner, where `destination`
is part of an `scp` command)
* Terraform will likely revert the change eventually, but I
suspect it will take a while
* Instead, we can stop relying on Terraform's expansion
behavior. `/home/core` is a suitable choice for `$HOME` on
both Flatcar Linux and Fedora CoreOS (harldink `/var/home/core`)

Rel: hashicorp/terraform#30243
  • Loading branch information
dghubble committed Dec 28, 2021
1 parent 66f71e3 commit 1fbc4d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssh.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource "null_resource" "copy-controller-secrets" {

provisioner "file" {
content = join("\n", local.assets_bundle)
destination = "$HOME/assets"
destination = "/home/core/assets"
}

provisioner "remote-exec" {
Expand Down

0 comments on commit 1fbc4d7

Please sign in to comment.