File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ AWS Codecommit:
34
34
``` hcl
35
35
module "pipeline" {
36
36
source = "aws-samples/pipeline/aws"
37
- version = "2.2 .x"
37
+ version = "2.3 .x"
38
38
pipeline_name = "pipeline-name"
39
39
repo = "codecommit-repo-name"
40
40
}
@@ -70,7 +70,7 @@ module "pipeline" {
70
70
71
71
codebuild_policy = aws_iam_policy.this.arn
72
72
build_timeout = 10
73
- terraform_version = "1.7 .0"
73
+ terraform_version = "1.8 .0"
74
74
checkov_version = "3.2.0"
75
75
tflint_version = "0.55.0"
76
76
Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ variable "checkov_skip" {
56
56
variable "checkov_version" {
57
57
type = string
58
58
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
+ }
59
63
}
60
64
61
65
variable "codebuild_policy" {
@@ -121,16 +125,28 @@ variable "tags" {
121
125
variable "tagnag_version" {
122
126
type = string
123
127
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
+ }
124
132
}
125
133
126
134
variable "terraform_version" {
127
135
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
+ }
129
141
}
130
142
131
143
variable "tflint_version" {
132
144
type = string
133
145
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
+ }
134
150
}
135
151
136
152
variable "vpc" {
You can’t perform that action at this time.
0 commit comments