Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Last active April 27, 2019 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save diegopacheco/09ddbf6482f7ffa1bdaa505e1be26230 to your computer and use it in GitHub Desktop.
Save diegopacheco/09ddbf6482f7ffa1bdaa505e1be26230 to your computer and use it in GitHub Desktop.
Dockerfile - Terraform + Amazon Linux
FROM amazonlinux:latest
WORKDIR /
RUN yum update -y
RUN yum group install "Development Tools" -y
RUN yum install -y git zip wget
RUN wget https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip && unzip terraform_0.11.7_linux_amd64.zip
RUN chmod +x terraform
COPY . .
RUN chmod +x /run.sh
CMD ["/run.sh"]
#!/bin/bash
cd /app/
/terraform init
/terraform apply \
-auto-approve \
-input=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment