Last active
September 1, 2023 16:47
-
-
Save denniswebb/cd759d29afa1e3cb91c1af8ed79ef2f1 to your computer and use it in GitHub Desktop.
Terraform module to install aws cli for Terraform Enterprise (Atlas)
This file contains 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
data "template_file" "main" { | |
template = <<EOF | |
set -e | |
WORKDIR=/tmp/${uuid()} | |
mkdir -p "$WORKDIR" | |
cd "$WORKDIR" | |
curl -f "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" | |
unzip awscli-bundle.zip | |
./awscli-bundle/install -i "$WORKDIR"/aws | |
EOF | |
} | |
output "script" { | |
value = "${data.template_file.main.rendered}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment