Skip to content

Instantly share code, notes, and snippets.

@stfsy
Created September 30, 2021 19:54
Show Gist options
  • Select an option

  • Save stfsy/0a319c2f929bf874e4f160dad345686f to your computer and use it in GitHub Desktop.

Select an option

Save stfsy/0a319c2f929bf874e4f160dad345686f to your computer and use it in GitHub Desktop.
resource "null_resource" "frontend-modules" {
for_each = toset(var.modules)
provisioner "file" {
source = "../blauspecht-frontend-${each.key}/"
destination = "${var.app_dir}/${each.key}/"
connection {
# omitted for brevity
}
}
provisioner "remote-exec" {
inline = [
"cd ${var.app_dir}/${each.key} && npm ci --production",
]
}
connection {
# omitted for brevity
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment