Skip to content

Commit

Permalink
Use absolute path in TF config
Browse files Browse the repository at this point in the history
  • Loading branch information
ldx committed Aug 21, 2020
1 parent b43f042 commit a646194
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions deploy/terraform-aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource "aws_vpc" "main" {

provisioner "local-exec" {
when = destroy
command = "./cleanup-vpc.sh ${self.id} ${var.cluster_name}"
command = "${path.module}/cleanup-vpc.sh ${self.id} ${var.cluster_name}"
interpreter = ["/bin/bash", "-c"]
environment = {
"AWS_REGION" = var.region
Expand All @@ -62,7 +62,7 @@ resource "aws_internet_gateway" "gw" {

provisioner "local-exec" {
when = destroy
command = "./cleanup-vpc.sh ${self.vpc_id} ${var.cluster_name}"
command = "${path.module}/cleanup-vpc.sh ${self.vpc_id} ${var.cluster_name}"
interpreter = ["/bin/bash", "-c"]
environment = {
"AWS_REGION" = var.region
Expand Down Expand Up @@ -319,7 +319,7 @@ data "external" "manifest" {
}

data "template_file" "node-userdata" {
template = file("node.sh")
template = file("${path.module}/node.sh")

vars = {
k8stoken = local.k8stoken
Expand Down
2 changes: 1 addition & 1 deletion deploy/terraform-gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ resource "null_resource" "client_permissions" {
environment = {
KUBECONFIG = "${path.module}/kubeconfig"
}
command = "kubectl apply -f cluster-admin.yaml --username=client --password=${local.password}"
command = "kubectl apply -f ${path.module}/cluster-admin.yaml --username=client --password=${local.password}"
}

triggers = {
Expand Down

0 comments on commit a646194

Please sign in to comment.