Skip to content

Instantly share code, notes, and snippets.

View autotune's full-sized avatar

Brian Adams autotune

View GitHub Profile
@denniswebb
denniswebb / aws_cli_install.tf
Last active September 1, 2023 16:47
Terraform module to install aws cli for Terraform Enterprise (Atlas)
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