Created
September 30, 2021 19:54
-
-
Save stfsy/0a319c2f929bf874e4f160dad345686f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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