josiahsiegel/Generate Terraform statistics
Output Terraform stats for drift and pending changes
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Apr 25, 2024
- License
- MIT
Pinned Snippet
uses: josiahsiegel/terraform-stats@68b8cbe42c494333fbf6f8d90ac86da1fb69dcc2 # v1.6tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| terraform-directory | Terraform commands will run in this location. | yes | ./terraform |
| include-no-op | "no-op" refers to the before and after Terraform changes are identical as a value will only be known after apply. | yes | false |
| add-args | Pass additional arguments to Terraform plan. | yes | "" |
| upload-plan | Upload plan file. true or false | yes | false |
| upload-retention-days | Number of days to keep uploaded plan. | yes | 7 |
| plan-file | Name of plan file. | yes | tf__stats__plan.bin |
| terraform-version | Specify a specific version of Terraform | yes | latest |
Outputs
| name | description |
|---|---|
| terraform-version | Terraform version |
| drift-count | Count of drifts |
| resource-drifts | JSON output of resource drifts |
| change-count | Count of changes |
| resource-changes | JSON output of resource changes |
| change-percent | Percentage of changes to total resources |