mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 04:53:11 +00:00
16 lines
456 B
Terraform
16 lines
456 B
Terraform
|
|
variable "release_version_label" {
|
||
|
|
type = string
|
||
|
|
default = null
|
||
|
|
nullable = true
|
||
|
|
|
||
|
|
description = "Immutable Elastic Beanstalk application version. Null VCS plans leave the live version unchanged."
|
||
|
|
|
||
|
|
validation {
|
||
|
|
condition = (
|
||
|
|
var.release_version_label == null ||
|
||
|
|
can(regex("^[0-9a-f]{40}-[0-9]+-[0-9]+$", var.release_version_label))
|
||
|
|
)
|
||
|
|
error_message = "release_version_label must be <full-sha>-<run-id>-<attempt>."
|
||
|
|
}
|
||
|
|
}
|