Skip to content

Commit 81c4588

Browse files
authored
fixing outputs (#13)
1 parent d6ef173 commit 81c4588

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

outputs.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,37 @@
33
############################
44

55
output "vpc_name" {
6-
value = try(module.vpc.name, null)
6+
value = try(module.vpc[0].name, null)
77
description = "The name of the VPC"
88
}
99

1010
output "vpc_id" {
11-
value = try(module.vpc.vpc_id, null)
11+
value = try(module.vpc[0].vpc_id, null)
1212
description = "The VPC ID"
1313
}
1414

1515
output "vpc_public_subnets_ids" {
16-
value = try(module.vpc.public_subnets, null)
16+
value = try(module.vpc[0].public_subnets, null)
1717
description = "The list of public subnets IDs associated with the VPC"
1818
}
1919

2020
output "vpc_private_subnets_ids" {
21-
value = try(module.vpc.private_subnets, null)
21+
value = try(module.vpc[0].private_subnets, null)
2222
description = "The list of private subnets IDs associated with the VPC"
2323
}
2424

2525
output "vpc_nats_ids" {
26-
value = try(module.vpc.nat_ids, null)
26+
value = try(module.vpc[0].nat_ids, null)
2727
description = "The list of allocation ID for Elastic IPs"
2828
}
2929

3030
output "vpc_public_route_table_ids" {
31-
value = try(module.vpc.public_route_table_ids, null)
31+
value = try(module.vpc[0].public_route_table_ids, null)
3232
description = "The list of IDs of public route tables"
3333
}
3434

3535
output "vpc_private_route_table_ids" {
36-
value = try(module.vpc.private_route_table_ids, null)
36+
value = try(module.vpc[0].private_route_table_ids, null)
3737
description = "The list of IDs of private route tables"
3838
}
3939

0 commit comments

Comments
 (0)