Skip to content

Commit 8f6d25b

Browse files
authored
terraform version 1.8.0 (#33)
update terraform version to 1.8.0
1 parent 51e6e88 commit 8f6d25b

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ AWS Codecommit:
3434
```hcl
3535
module "pipeline" {
3636
source = "aws-samples/pipeline/aws"
37-
version = "2.2.x"
37+
version = "2.3.x"
3838
pipeline_name = "pipeline-name"
3939
repo = "codecommit-repo-name"
4040
}
@@ -70,7 +70,7 @@ module "pipeline" {
7070
7171
codebuild_policy = aws_iam_policy.this.arn
7272
build_timeout = 10
73-
terraform_version = "1.7.0"
73+
terraform_version = "1.8.0"
7474
checkov_version = "3.2.0"
7575
tflint_version = "0.55.0"
7676

variables.tf

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ variable "checkov_skip" {
5656
variable "checkov_version" {
5757
type = string
5858
default = "3.2.0"
59+
validation {
60+
condition = can(regex("^\\d+\\.\\d+\\.\\d+$", var.checkov_version))
61+
error_message = "checkov version must use format x.y.z"
62+
}
5963
}
6064

6165
variable "codebuild_policy" {
@@ -121,16 +125,28 @@ variable "tags" {
121125
variable "tagnag_version" {
122126
type = string
123127
default = "0.7.9"
128+
validation {
129+
condition = can(regex("^\\d+\\.\\d+\\.\\d+$", var.tagnag_version))
130+
error_message = "tagnag version must use format x.y.z"
131+
}
124132
}
125133

126134
variable "terraform_version" {
127135
type = string
128-
default = "1.7.0"
136+
default = "1.8.0"
137+
validation {
138+
condition = can(regex("^\\d+\\.\\d+\\.\\d+$", var.terraform_version))
139+
error_message = "terraform version must use format x.y.z"
140+
}
129141
}
130142

131143
variable "tflint_version" {
132144
type = string
133145
default = "0.55.0"
146+
validation {
147+
condition = can(regex("^\\d+\\.\\d+\\.\\d+$", var.tflint_version))
148+
error_message = "tflint version must use format x.y.z"
149+
}
134150
}
135151

136152
variable "vpc" {

0 commit comments

Comments
 (0)