Skip to content

Commit

Permalink
chore!: change default Terraform version to 1.10.2 (#235)
Browse files Browse the repository at this point in the history
This PR increases the default version of Terraform used from `1.9.8` to
version `1.10.2`.
This is considered a breaking change because anyone who does not
manually specify a `terraformVersion` in their action configuration will
automatically start using the new version.
 
Unfortunately, not everything can be automated, and the following steps
need to be completed manually:
 
- [x] Update the _Terraform Version_ to `1.10.2` in the TFC web UI for
the
[cdk-action-testing](https://app.terraform.io/app/cdktf/workspaces/cdk-action-testing/settings/general)
workspace
 
Please complete the above steps and then mark this PR as ready for
review to rerun the checks. Thanks!

Signed-off-by: team-tf-cdk <[email protected]>
Co-authored-by: Daniel Schmidt <[email protected]>
  • Loading branch information
team-tf-cdk and DanielMSchmidt authored Dec 20, 2024
1 parent 612c7b7 commit 6e6f531
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const inputs = {
},
terraformVersion: {
description: "The version of Terraform to use",
default: "1.9.8",
default: "1.10.2",
required: false,
type: "string",
},
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The Terraform CDK GitHub Action allows you to run CDKTF as part of your CI/CD wo
| parameter | description | required | default |
| --- | --- | --- | --- |
| cdktfVersion | The version of CDKTF to use | `false` | 0.20.9 |
| terraformVersion | The version of Terraform to use | `false` | 1.9.8 |
| terraformVersion | The version of Terraform to use | `false` | 1.10.2 |
| workingDirectory | The directory to use for the project | `false` | ./ |
| mode | 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 | `true` | |
| stackName | The stack to run / plan, only required when the mode is `plan-only` or `plan-and-apply` | `false` | |
Expand Down Expand Up @@ -59,10 +59,10 @@ jobs:
run: yarn test

- name: Run Terraform CDK
uses: hashicorp/terraform-cdk-action@v5
uses: hashicorp/terraform-cdk-action@v6
with:
cdktfVersion: 0.20.9
terraformVersion: 1.9.8
terraformVersion: 1.10.2
mode: plan-only
stackName: my-stack
terraformCloudToken: ${{ secrets.TF_API_TOKEN }}
Expand Down Expand Up @@ -107,10 +107,10 @@ jobs:
run: yarn test

- name: Run Terraform CDK
uses: hashicorp/terraform-cdk-action@v5
uses: hashicorp/terraform-cdk-action@v6
with:
cdktfVersion: 0.20.9
terraformVersion: 1.9.8
terraformVersion: 1.10.2
mode: auto-approve-apply
stackName: my-stack
terraformCloudToken: ${{ secrets.TF_API_TOKEN }}
Expand Down Expand Up @@ -151,10 +151,10 @@ jobs:
run: yarn test

- name: Test the synth
uses: hashicorp/terraform-cdk-action@v5
uses: hashicorp/terraform-cdk-action@v6
with:
cdktfVersion: 0.20.9
terraformVersion: 1.9.8
terraformVersion: 1.10.2
mode: synth-only
stackName: my-stack
```
Expand Down
2 changes: 1 addition & 1 deletion action.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e6f531

Please sign in to comment.