From dfb0a96d69e20e9870e119300d555acc36bf76bc Mon Sep 17 00:00:00 2001 From: Nicholas Kumia Date: Tue, 1 Mar 2022 23:49:25 -0500 Subject: [PATCH] fix: -p is not the correct flag To recognize aliases, use 'type -a'; Fix for https://github.com/GSA/datagov-brokerpak-eks/pull/81; Reference: https://github.com/nickumia-reisys/github-action-test/runs/5386457012?check_suite_focus=true#step:2:11, Successful Run: https://github.com/nickumia-reisys/github-action-test/runs/5386457073?check_suite_focus=true#step:3:45 --- terraform/modules/provision/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/modules/provision/main.tf b/terraform/modules/provision/main.tf index 26600b5d..3e6d21de 100644 --- a/terraform/modules/provision/main.tf +++ b/terraform/modules/provision/main.tf @@ -16,7 +16,7 @@ # can to avoid that. resource "null_resource" "prerequisite_binaries_present" { provisioner "local-exec" { - interpreter = ["/bin/bash", "-c"] - command = "type -p aws-iam-authenticator git helm kubectl" + interpreter = ["/bin/sh", "-c"] + command = "type -a aws-iam-authenticator git helm kubectl" } }