You can run Terragrunt commands directly from InfraToolbox:
infratoolbox terragrunt plan --terragrunt-config=terragrunt.hclAfter generating a pre-built module, you can customize the generated files to suit your needs:
infratoolbox module my-custom-s3-module
cd my-custom-s3-module
# Edit the main.tf, variables.tf, etc. files.Example of a pipeline in GitHub Actions:
name: Terraform Plan
on:
push:
branches:
- main
jobs:
terraform:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install InfraToolbox
run: |
go install github.com/yourusername/infratoolbox@latest
- name: Run Terraform Plan
run: |
infratoolbox terraform plan