Skip to content

Commit

Permalink
Merge pull request #1955 from hashicorp/use-terraform-cli-for-tfc
Browse files Browse the repository at this point in the history
chore: replace TF Cloud implementation with TF CLI
  • Loading branch information
ansgarm committed Dec 15, 2022
2 parents be22b96 + 10578b8 commit ad30cd9
Show file tree
Hide file tree
Showing 29 changed files with 1,176 additions and 47,152 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:
id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.global-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-examples-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-examples-yarn-
- name: installing dependencies
run: |
yarn install --frozen-lockfile --prefer-offline
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:
id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.global-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-integration-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-integration-yarn-
- name: install dependencies
run: yarn install --frozen-lockfile --prefer-offline
- name: set version
Expand Down Expand Up @@ -83,6 +83,7 @@ jobs:
env:
CHECKPOINT_DISABLE: "1"
TERRAFORM_VERSION: ${{ matrix.terraform }}
GITHUB_API_TOKEN_CDKTF: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 60

steps:
Expand All @@ -94,9 +95,9 @@ jobs:
id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.global-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-integration-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-integration-yarn-
- name: Download dist
uses: actions/download-artifact@v3.0.1
with:
Expand Down Expand Up @@ -128,6 +129,7 @@ jobs:
env:
CHECKPOINT_DISABLE: "1"
TERRAFORM_VERSION: ${{ matrix.terraform }}
GITHUB_API_TOKEN_CDKTF: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 60

steps:
Expand All @@ -139,9 +141,9 @@ jobs:
id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.global-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-integration-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-integration-yarn-
- name: HashiCorp - Setup Terraform
uses: hashicorp/setup-terraform@v2.0.3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
"@cdktf/commons",
"@cdktf/cli-core",
]
terraform_version: ["1.1.9", "1.2.8"]
terraform_version: ["1.2.8", "1.3.4"]
with:
concurrency_group_prefix: pr-all
package: ${{ matrix.package }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
"@cdktf/commons",
"@cdktf/cli-core",
]
terraform_version: ["1.1.9", "1.2.8"]
terraform_version: ["1.2.8", "1.3.4"]
with:
concurrency_group_prefix: release
package: ${{ matrix.package }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
"@cdktf/commons",
"@cdktf/cli-core",
]
terraform_version: ["1.1.9", "1.2.8"]
terraform_version: ["1.2.8", "1.3.4"]
with:
concurrency_group_prefix: release-next
package: ${{ matrix.package }}
Expand Down
6 changes: 3 additions & 3 deletions .terraform.versions.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"default": "1.1.9",
"default": "1.2.8",
"available": [
"1.1.9",
"1.2.8",
"1.3.4"
],
"tested": [
"1.1.9",
"1.2.8"
"1.2.8",
"1.3.4"
]
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Unreleased

Breaking: CDK for Terraform now requires Terraform CLI version 1.2 or above.

## 0.14.3

### fix
Expand Down

0 comments on commit ad30cd9

Please sign in to comment.