Skip to content

BrownUniversity/kitchen-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kitchen-terraform

A docker image built from the official terraform docker image, then ruby, python, kitchen-terraform, and the packages in the Gemfile installed in next layers.

The tag of the docker images saved to ghcr.io match the version of terraform used in the Dockerfile

Usage

See terraform-test.yml for usage in a github actions workflow.

Expected secrets:

  • GCP_BILLING_ACCOUNT: GCP billing account number for test project
  • GCP_ORG_ID: GCP organization id for test project
  • GCP_FOLDER_ID: GCP folder id for test project
  • GCP_CREDENTIAL_JSON: contents of GCP credentials.json file

In the workflow, many of these secrets are assigned to environment variables starting with TF_VAR. These will be used as terraform variables when running the tests.

Development

Please create a feature branch from main. Upon PR, the image will be build. Once the PR is merged to main, the built image will be uploaded to ghcr.io using the version of terraform used in the Dockerfile as the tag number.

About

Docker Container for testing terraform with kitchen

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages