Skip to content

New AWS Multi Account ready setup with a better approach #84

New AWS Multi Account ready setup with a better approach

New AWS Multi Account ready setup with a better approach #84

Workflow file for this run

name: Terraform Docs
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tf-docs:
name: Generate Terraform Docs
runs-on: ubuntu-latest
steps:
- name: Begin CI...
uses: actions/checkout@v3
with:
# If the event that triggered the workflow is a pull request, then the variable contains ${{ github.event.pull_request.head.ref }}
# If the event that triggered the workflow is a push, then the variable contains ${{ github.ref }}
ref: ${{ github.event.pull_request.head.ref || github.ref }}
- name: Render terraform docs inside modules
uses: terraform-docs/[email protected]
with:
working-dir: modules/amplify-app,modules/rds,modules/vpc,modules/bastion,live/prod/us-west-2,live/staging/us-west-2
output-file: docs/MODULE.md
output-method: replace
git-push: "true"