snapsheet/cdktf-diff
Execute cdktf diff, parse STDOUT/STDERR output, and return outputs based on the outcomes.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GITHUB_TOKEN to use GitHub API. Simply specify secrets.GITHUB_TOKEN. | yes | — |
| job_name | jobs.<job-id>.name of this workflow job. This is needed to get the job ID via query. | yes | — |
| output_filename | Name of the file this jobs outputs will be saved into. | yes | — |
| ref | The ref (branch or sha) to use with the diff. | yes | — |
| stack | Full name of the CDKTF stack to diff. | yes | — |
| stub_output_file | When present, no Terraform will execute. The output of this action will be substituted with the output contained in this file. This is useful for cases when you want to test but don't have authentication set up. | — | — |
| terraform_version | The version of Terraform to use | — | 1.8.0 |
| working_directory | Working directory path that contains your cdktf code. | — | ./ |
| skip_synth | Skip synthesis of the application, assume the synthesized Terraform code is already present and up to date | — | false |
| artifact_name | When given, attempt to download the given artifact contents into this working directory. | — | — |
Outputs
| name | description |
|---|---|
| html_url | Direct link to this job, which shows the full execution output. |
| job_id | ID of this job |
| result_code | Similar to exitcode behavior for Terraform, not yet supported by CDKTF. 0 = Succeeded with empty diff (no changes), 1 = Error, 2 = Succeeded with non-empty diff (changes present) |
| stack | Full name of the CDKTF stack used for the diff. |
| summary | Single string of output to summarize the results. |