diff --git a/images/macos/scripts/build/install-aws-tools.sh b/images/macos/scripts/build/install-aws-tools.sh index db4565b739..601627d314 100644 --- a/images/macos/scripts/build/install-aws-tools.sh +++ b/images/macos/scripts/build/install-aws-tools.sh @@ -12,6 +12,7 @@ sudo installer -pkg "$awscliv2_pkg_path" -target / echo "Installing aws sam cli..." brew tap aws/tap +brew trust aws/tap brew_smart_install aws-sam-cli echo "Install aws cli session manager" diff --git a/images/macos/scripts/build/install-common-utils.sh b/images/macos/scripts/build/install-common-utils.sh index 7c1cfb4f4f..8df49202c7 100644 --- a/images/macos/scripts/build/install-common-utils.sh +++ b/images/macos/scripts/build/install-common-utils.sh @@ -12,6 +12,8 @@ for package in $common_packages; do case "$package" in packer) # Packer has been deprecated in Homebrew. Use tap to install Packer. + brew tap hashicorp/tap + brew trust hashicorp/tap brew install hashicorp/tap/packer ;;