Skip to content

Commit 4eae171

Browse files
committed
AMI: Fix stage2 builds
I got rid of all the sudos in nix-provision.sh thinking it was being run like stage1 and did not notice before auto-merge did its thing. This fixes the builds.
1 parent b116e17 commit 4eae171

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

stage2-nix-psql.pkr.hcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ build {
128128
"GIT_SHA=${var.git_sha}",
129129
"POSTGRES_MAJOR_VERSION=${var.postgres_major_version}"
130130
]
131-
script = "ebssurrogate/scripts/nix-provision.sh"
131+
use_env_var_file = true
132+
script = "ebssurrogate/scripts/nix-provision.sh"
133+
execute_command = "sudo -S sh -c '. {{.EnvVarFile}} && cd /tmp/ansible-playbook && {{.Path}}'"
132134
}
133-
134135
}

0 commit comments

Comments
 (0)