Terraform version: v1.2.8
Helm version: v2.6.0
Kubernetes version: v1.24.2
variable.tf
variable "appcore" {
description = "Core Applications"
type = set(string)
default = [
"core-app1",
"core-app2",
"core-app3",
"core-app4",
]
}
main.tf
resource "helm_release" "core" {
for_each = var.appcore
name = each.value
chart = "${var.CHART_REPOSITORY_NAME}/${each.value}"
values = [
"${file("${var.values_file}/${each.value}.yaml")}"
]
}
This works fine except that the applications are deployed in parallel. Any suggestions on how these applications can be deployed one at a time using a loop?