A simple docker container including terraform, packer and aws-cli
This container helps in e.g. GitLab-CI Omnibus installation.
It could be used to help you creating AMI with GitLab-CI.
run on local:
# ansible:
docker run --rm pfandie/terra-packer ansible --version
# awscli:
docker run --rm pfandie/terra-packer aws -version
# packer:
docker run --rm pfandie/terra-packer packer -v
# shellcheck:
docker run --rm pfandie/terra-packer shellcheck -V
# terraform:
docker run --rm pfandie/terra-packer terraform -v
# tflint:
docker run --rm pfandie/terra-packer tflint -v
# tfsec:
docker run --rm pfandie/terra-packer tfsec -v
Just extend your .gitlab-ci.yml to make use of this Image
build_task:
stage: build
image: REPOSITORY-URL/terra-packer:latest
only:
refs:
- master
script:
- ansible --version
- ansible-lint --version
- aws --version
- packer -v
- terraform -v
- terraform-compliance --version