This repository contains a collection of Nix flakes that produce container images designed to run deployments using the AWS CLI and Terraform.
Via Docker Compose, which includes volumes for basic functionality:
services:
terraform:
image: ghcr.io/d3b-center/terraform:1.1.9
volumes:
- ./:/usr/local/src
- $HOME/.aws:/root/.aws:ro
environment:
- AWS_PROFILE
working_dir: /usr/local/src
entrypoint: bash
$ docker-compose run --rm terraform
bash-5.1# terraform -version
Terraform v1.1.9
on linux_amd64
TERRAFORM_VERSION
- Terraform version (there must be a corrresponding flake).
An example of how to use cibuild
to build and test an image:
$ CI=1 TERRAFORM_VERSION=1.1.9 ./scripts/cibuild