Attempt at part two, OOM

This commit is contained in:
2025-12-02 09:55:37 +01:00
parent 2277721010
commit 027a7bdde6
3 changed files with 44 additions and 14 deletions

View File

@@ -1,7 +1,15 @@
variable "half" {
variable "part" {
type = number
}
output "full" {
value = tonumber("${var.half}${var.half}")
variable "repetitions" {
type = number
}
locals {
repeated = [for _ in range(var.repetitions) : tostring(var.part)]
}
output "full" {
value = join("", local.repeated)
}