Overview
The Terraform Plan GitHub Action automatically posts formatted Terraform plan output as comments on Pull Requests. Use it to review infrastructure changes directly within your PR workflow, making it easier to catch potential issues before applying Terraform changes to production.
Why teams choose it
- Automatic PR comments with formatted Terraform plan output so your team sees infrastructure changes immediately
- Smart comment updates that refresh existing comments instead of creating duplicates
- Works with binary plan files for accurate change detection
- Built with native JavaScript for fast execution compared to Docker-based alternatives
- Optionally skips posting when there are no changes to keep your PR conversations clean
What's inside
- Automatic Terraform plan parsing and formatting for readable PR comments
- Support for custom working directories and Terraform commands
- Custom headers for organizing multi-environment setups
- Configurable AWS region display in comments
- Outputs for integration with other workflow steps
Who is this for
Development teams using Terraform who want to review infrastructure changes directly in their Pull Request workflow instead of checking pipeline logs or running plans locally.
What you'll learn
- How to set up the action in your GitHub workflow with best practices and troubleshooting
- How to configure inputs and outputs for your specific use case
- How to implement usage patterns including reusable workflows and artifact-based workflows
Documentation map
Install
Get started with prerequisites, basic setup, and your first plan comment. Includes best practices for security, performance, maintenance, and comprehensive troubleshooting.
Usage Examples
Explore practical examples covering:
- Direct usage in workflow
- Reusable workflow patterns
Configuration
Complete reference for all available inputs and outputs the action accepts.
Ready to get hands-on? Head straight to the Install guide to add the action to your workflow, then explore Usage Examples for advanced patterns.
Resources
- GitHub Marketplace — download the action and view release notes
- Source Repository — browse the source code and contribute