Skip to content

Commit

Permalink
begin updating readme (#7)
Browse files Browse the repository at this point in the history
* Begin updating readme
* Set Python version to 3.9 to fix pre-commit in github actions
  • Loading branch information
chriscunningham-qodea authored Jun 21, 2022
1 parent f1e5663 commit 685cb4a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install terraform-docs
env:
TERRAFORM_DOCS_VERSION: 0.16.0
Expand All @@ -19,7 +19,7 @@ jobs:
- uses: actions/setup-node@v2
- name: Install markdownlint-cli
run: sudo npm install -g markdownlint-cli
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.0
- uses: actions/setup-python@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
python-version: "3.9"
- uses: pre-commit/action@v3.0.0
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,3 @@ cython_debug/
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,python

# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)

1 change: 0 additions & 1 deletion .markdownlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ MD033:
allowed_elements:
- pre
- br

28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `terragrunt-wrapper` README

This repo contains a shell script which makes it possible to used Terragrunt
This repo contains a Python tool which makes it possible to used Terragrunt
with the [Test Kitchen](kitchen.chef.io) framework more natural. It intercepts
the calls that the `kitchen-terraform` driver makes to the `terraform` binary
and instead directs them to `terragrunt` while ensuring that the differences
Expand All @@ -9,11 +9,6 @@ between how the two commands are invoked are accounted for.
Inspec testing is fully supported and outputs from Terraform modules are
serialised in a manner that permits them to be loaded as inputs to Inspec.

## Usage

Ensure that the `TK_HOME` environment variable is set to the directory that
contains the Test Kitchen config.

## Configuration

The tool expects the following directory structure:
Expand Down Expand Up @@ -99,6 +94,10 @@ todo

Export `TERRAGRUNT_SOURCE_UPDATE=true` to track a branch rather than a tag.

## Building

The tool uses Poetry to manage its Python configuration.

## Notes

- Inter-environment dependencies will be processed as normal: this means that
Expand All @@ -121,11 +120,22 @@ Export `TERRAGRUNT_SOURCE_UPDATE=true` to track a branch rather than a tag.
if Terragrunt runs the same module more than once when building out an
environment then the resultant output will be invalid YAML. The correct fix
here would be for Terragrunt to rename outputs according to the environment
in some manner itself. For now an imperfect solution of inline Python is
used to manually modify `project` resource outputs only. There is no reason
that this could not be improved to handle all output objects.
in some manner itself. For now an imperfect solution is used to manually
modify `project` resource outputs only. There is no reason that this could
not be improved to handle all output objects.
- The `inspec-gcp` profile is a very thin wrapper around the underlying API
calls and is missing a lot of possible introspection. For resource types
that it does not cover or does not expose sufficient attributes for, it is
recommended to use the `local` profile and just run `gcloud` commands
directly.

## Releases

Releases are pushed automatically on push to `main` by a GitHub Action.

## TODO

- Improve docs
- Stop hard-coding paths in the code and figure out how to adapt to different
naming styles. `TK_HOME` shows how this can be done.
- Reconcile the internal version number and the release version.

0 comments on commit 685cb4a

Please sign in to comment.