sgametrio / terraform-summary-action

Github Action that generates a job summary from a Terraform plan output file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform summary action

Github Action that generates a job summary from a Terraform plan output file.

The idea is to highlight the number of changes planned to be applied while giving the possibility to view the terraform plan output only.

Example

Job summary example

Usage

- name: Terraform Plan
  run: terraform plan | tee terraform_plan_output.txt

- name: Print job summary
  uses: sgametrio/terraform-summary-action@main
  with:
    log-file: terraform_plan_output.txt
    # Optional
    title: Custom header in the Job summary

Tests

Tested with Terraform:

  • v1.3.6

Planned features

  • Ingest output from terraform apply and return as a summary the short "Apply complete! Resources: X added, Y changed, Z destroyed.
  • Display summary of to-be changed/created/destroyed resources after plan.

About

Github Action that generates a job summary from a Terraform plan output file.

License:The Unlicense


Languages

Language:Shell 100.0%