Skip to content

Commit 3b459f7

Browse files
author
Sébastien Rouaix
committed
fix: add region for subnets recovery
1 parent 2bbb79b commit 3b459f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,8 @@ locals {
494494
data "aws_subnet" "this" {
495495
count = local.create_security_group ? 1 : 0
496496

497-
id = element(var.vpc_options.subnet_ids, 0)
497+
region = var.region
498+
id = element(var.vpc_options.subnet_ids, 0)
498499
}
499500

500501
resource "aws_security_group" "this" {

0 commit comments

Comments
 (0)