Skip to content

Commit

Permalink
Merge pull request #30 from bmitchinson/main
Browse files Browse the repository at this point in the history
feat: Add "AutoApproveDestroy" mode option
  • Loading branch information
DanielMSchmidt authored Mar 9, 2023
2 parents 498d726 + aea6423 commit 5a28f6f
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 17 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ This is the Terraform CDK GitHub Action, it allows you to run Terraform CDK as p

These are the configuration options for the action:

| **Name** | **Type** | **Description** | **Default** |
| ------------------- | --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| cdktfVersion | string | The version of cdktf CLI to use | 0.12.2 |
| terraformVersion | string | The version of terraform to use | 1.3.0 |
| workingDirectory | string | The directory to use for the project | ./ |
| stackName | string | The stack to run / plan, only required when the mode is plan 'plan-only' or 'plan-and-apply' | <optional> |
| mode | "synth-only" \| "plan-only" \| "auto-approve-apply" | What action to take: 'plan-only' only runs a plan, 'plan-and-apply' runs a plan and then an apply, 'synth-only' runs only the synthetization | <required> |
| terraformCloudToken | string | The terraform cloud / terraform enterprise token to use | <optional> |
| githubToken | string | The github token to use | <optional> |
| commentOnPr | boolean | Whether to comment the plan / the status on the PR | true |
| **Name** | **Type** | **Description** | **Default** |
| ------------------- | ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| cdktfVersion | string | The version of cdktf CLI to use | 0.12.2 |
| terraformVersion | string | The version of terraform to use | 1.3.0 |
| workingDirectory | string | The directory to use for the project | ./ |
| stackName | string | The stack to run / plan, only required when the mode is plan 'plan-only' or 'plan-and-apply' | <optional> |
| mode | "synth-only" \| "plan-only" \| "auto-approve-apply" \| "auto-approve-destroy" | What action to take: 'synth-only' runs only the synthesis, 'plan-only' only runs a plan, 'auto-approve-apply' runs a plan and then performs an apply, 'auto-approve-destroy' runs a plan and then performs a destroy" | <required> |
| terraformCloudToken | string | The terraform cloud / terraform enterprise token to use | <optional> |
| githubToken | string | The github token to use | <optional> |
| commentOnPr | boolean | Whether to comment the plan / the status on the PR | true |

## Example Configurations

Expand Down
Loading

0 comments on commit 5a28f6f

Please sign in to comment.