Skip to content

Commit

Permalink
feat: add validation to runtime_platform
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-racciatti committed Oct 4, 2024
1 parent f7110cb commit 43d3be8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,13 @@ variable "log_retention_days" {
variable "runtime_platform" {
description = "The runtime platform configuration"
type = object({
cpu_architecture = string
})
default = ({
cpu_architecture = "X86_64"
})
cpu_architecture = string
})
default = ({
cpu_architecture = "X86_64"
})
validation {
condition = contains(["ARM64", "X86_64"], var.runtime_platform.cpu_architecture)
error_message = "The runtime_platform.cpu_architecture must be either 'ARM64' or 'X86_64'"
}
}

0 comments on commit 43d3be8

Please sign in to comment.