mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 16:33:12 +00:00
GitHub creates the immutable Elastic Beanstalk version; HCP Terraform is the only UpdateEnvironment caller via a guarded version_label run.
15 lines
456 B
HCL
15 lines
456 B
HCL
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>."
|
|
}
|
|
}
|