Skip to content

Commit

Permalink
Remove tf version ceiling (#515)
Browse files Browse the repository at this point in the history
* Remove tf version ceiling

* Use v2 tf orb

* Update to v2 executor

* Bump module versions
  • Loading branch information
eversC authored May 16, 2022
1 parent cef3ebd commit 8102390
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defaults: &defaults
version: 2.1

orbs:
terraform: ovotech/terraform@1
terraform: ovotech/terraform-v2@2

jobs:
goreleaser:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
pip3 install awscli
aws s3 cp $TARGET_FILE s3://ckr-terraform-module-code --acl public-read
tf_check_aws:
executor: terraform/terraform-0_12
executor: terraform/default
steps:
- checkout
- terraform/fmt-check:
Expand All @@ -86,7 +86,7 @@ jobs:
# of the module needs to do that.

tf_check_gcp:
executor: terraform/terraform-0_12
executor: terraform/default
steps:
- checkout
- terraform/fmt-check:
Expand All @@ -95,7 +95,7 @@ jobs:
path: tf_module/ckr_gcp

publish_aws_tf_module:
executor: terraform/terraform-0_12
executor: terraform/default
steps:
- checkout
- run:
Expand All @@ -108,7 +108,7 @@ jobs:
version_file_path: tf_module/ckr_aws/module_version.txt

publish_gcp_tf_module:
executor: terraform/terraform-0_12
executor: terraform/default
steps:
- checkout
- run:
Expand Down
5 changes: 1 addition & 4 deletions tf_module/ckr_aws/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
terraform {
# version >= 0.15.0 will break as the terraform orb v1 doesn't support it
required_version = "< 0.15.0"
}
terraform {}

data "aws_caller_identity" "current" {}

Expand Down
2 changes: 1 addition & 1 deletion tf_module/ckr_aws/module_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.3
0.1.4
3 changes: 1 addition & 2 deletions tf_module/ckr_gcp/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
terraform {
# version >= 0.15.0 will break as the terraform orb v1 doesn't support it
required_version = ">= 0.12.6, < 0.15.0"
required_version = ">= 0.12.6"
}

locals {
Expand Down
2 changes: 1 addition & 1 deletion tf_module/ckr_gcp/module_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1

0 comments on commit 8102390

Please sign in to comment.