-
-
Save autotune/0591e00a512153cd66d97791140ab637 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