stockopedia/Stockopedia's Terraform runner
GitHub Action that expores the Stockopedia Terraform stack, uses the changed file list in the current PR, and runs `terraform plan` on each changed stack.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| CHANGED_FILE_LIST | A comma separated list of file paths, indicating files that have changed in the current PR. If all files in the repository are passed in, this will re-plan the entire stack. | yes | [] |
| BASE_DIRECTORY | The base directory of the terraform project. Used to look up the ./environments/ folder under it. | no | /app |
| DISABLE_NON_AWS_CHANGES | Can have any value. If present, only aws provided layers will be considered by terraform. | no | "" |
| APPLY_MODE | Determines whether the script should also run 'terraform apply' after the 'terraform plan' step. Disabled by default. | no | false |
Outputs
| name | description |
|---|---|
| terraform_plan_output | Output from the Terraform Plan action(s). If multiple plans ran, the plans will be separated by 2 line separators. |
| terraform_apply_output | Output from the Terraform Apply action(s). This will be empty if APPLY_MODE was not set to true. If multiple plans ran, the plans will be separated by 2 line separators. |
| terraform_error_output | Error outputs from any of the steps (Init, Plan, Apply). If multiple plans ran, the plans will be separated by 2 line separators. |