Skip to content

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

License

Notifications You must be signed in to change notification settings

sgametrio/terraform-summary-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages