GitHub Action Atmos Terraform Plan
Version updated for https://github.com/cloudposse/github-action-atmos-terraform-plan to version v5.7.1.
- This publisher is shown as ‘verified’ by GitHub.
- This action is used across all versions by 10 repositories.
Go to the GitHub Marketplace to find the latest changes.
Action Summary
This GitHub Action automates the process of running a Terraform plan for an Atmos-supported component and securely saving the resulting plan file and metadata to AWS S3 and DynamoDB. It simplifies infrastructure management by integrating Terraform workflows with Atmos, ensuring consistent storage and tracking of plan files. This action is particularly useful for teams leveraging GitHub Actions for Terraform-based infrastructure orchestration.
Release notes
Why
- The latest release failed to be cut due test failure. Test fixed, so we need to issue a new release
References
- Adds a new
has-changesoutput that exposes whether the Terraform plan contains infrastructure changes - The output is a string value of
"true"or"false"
Motivation
Currently, consumers who want to conditionally run steps based on whether the plan has changes must parse the summary output. The action already computes this internally (used for Infracost integration), but doesn’t expose it.
This change simply exposes the existing steps.atmos-plan.outputs.changes value as a proper action output.
Usage
- uses: cloudposse/github-action-atmos-terraform-plan@v4
id: plan
with:
component: mycomponent
stack: dev
- if: steps.plan.outputs.has-changes == 'true'
run: echo "Infrastructure changes detected"
Test plan
- Verify output is
"true"when plan has changes - Verify output is
"false"when plan has no changes
🚀 Enhancements
Action output enhancement:
- Added a new output
has-changestoaction.yml, which indicates whether the Terraform plan has changes, with the value being the string'true'or'false'.
Workflow formatting cleanup: