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:
3434``` hcl
3535module "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
Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ variable "checkov_skip" {
5656variable "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
6165variable "codebuild_policy" {
@@ -121,16 +125,28 @@ variable "tags" {
121125variable "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
126134variable "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
131143variable "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
136152variable "vpc" {
You can’t perform that action at this time.
0 commit comments