Skip to content

Commit e019891

Browse files
srouaixSébastien Rouaix
andauthored
fix: Add region for subnets recovery (#44)
Co-authored-by: Sébastien Rouaix <sebastien-externe.rouaix@edf.fr>
1 parent 2bbb79b commit e019891

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data "aws_region" "current" {
22
count = var.create ? 1 : 0
3+
4+
region = var.region
35
}
46
data "aws_partition" "current" {
57
count = var.create ? 1 : 0
@@ -494,7 +496,8 @@ locals {
494496
data "aws_subnet" "this" {
495497
count = local.create_security_group ? 1 : 0
496498

497-
id = element(var.vpc_options.subnet_ids, 0)
499+
region = var.region
500+
id = element(var.vpc_options.subnet_ids, 0)
498501
}
499502

500503
resource "aws_security_group" "this" {

0 commit comments

Comments
 (0)