Container to support acceptance testing of Terraform modules
3.4K
Automatic build of terraform acceptance test container for Docker Hub.
A container to test terraform modules.
Modify the docker command below, noting in particular:
AWS_PROFILE should be setup in your ~/.aws/credentials file and should be a test/dev account
In the examples below terraform version referred to is 0.11.7, which corresponds to the image tag used.
Create adirectory named tests, add your test cases, e.g dummy_test.go
Run command below:
docker run --rm \
-e GO111MODULE=on
-e AWS_PROFILE=development \
-v ~/.aws:/root/.aws \
-v $(pwd):/app \
-w /app
cozero/tf-acceptance-testing:0.11.7 -c 'go mod init tests && cd tests && go test -v -run ./...'
Content type
Image
Digest
Size
314.1 MB
Last updated
over 7 years ago
docker pull cozero/tf-acceptance-testing