diff --git a/terraform/main.tf b/terraform/main.tf index 2cb00ba1b106ba0bd54bf0700763fb69aa1233b6..2a952adf0cdaee038e6ec2b8faa1f21fb8fa467c 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -58,7 +58,7 @@ resource "scaleway_instance_security_group" "www" { resource "scaleway_instance_server" "user_instance_server" { count = var.INSTANCE_COUNT project_id = var.SCW_PROJECT_ID - name = var.INSTANCE_COUNT == 1 ? "instance-${ENVIRONMENT}" : "instance${count.index}-${var.ENVIRONMENT}" + name = var.INSTANCE_COUNT == 1 ? "instance-${var.ENVIRONMENT}" : "instance${count.index}-${var.ENVIRONMENT}" type = var.INSTANCE_TYPE image = "ubuntu_jammy" ip_id = scaleway_instance_ip.public_ip[count.index].id