From dc82b6d0f4fad459f9d5ef5ff38a22711ee4a43b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rouaix?= Date: Mon, 1 Sep 2025 08:53:41 +0000 Subject: [PATCH] fix: add region for subnets recovery --- main.tf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index b29c082..b97fa10 100644 --- a/main.tf +++ b/main.tf @@ -1,5 +1,7 @@ data "aws_region" "current" { count = var.create ? 1 : 0 + + region = var.region } data "aws_partition" "current" { count = var.create ? 1 : 0 @@ -494,7 +496,8 @@ locals { data "aws_subnet" "this" { count = local.create_security_group ? 1 : 0 - id = element(var.vpc_options.subnet_ids, 0) + region = var.region + id = element(var.vpc_options.subnet_ids, 0) } resource "aws_security_group" "this" {