1
1
# Module : VPC
2
2
# Description : Terraform module to create VPC resource on AWS.
3
3
output "vpc_id" {
4
- value = concat (
5
- aws_vpc. default . * . id
6
- )[0 ]
4
+ value = join (" " , aws_vpc. default . * . id )
7
5
description = " The ID of the VPC."
8
6
}
9
7
10
8
output "vpc_cidr_block" {
11
- value = concat (
12
- aws_vpc. default . * . cidr_block
13
- )[0 ]
9
+ value = join (" " , aws_vpc. default . * . cidr_block )
14
10
description = " The CIDR block of the VPC."
15
11
}
16
12
17
13
output "vpc_main_route_table_id" {
18
- value = concat (
19
- aws_vpc. default . * . main_route_table_id
20
- )[0 ]
14
+ value = join (" " , aws_vpc. default . * . main_route_table_id )
21
15
description = " The ID of the main route table associated with this VPC."
22
16
}
23
17
24
18
output "vpc_default_network_acl_id" {
25
- value = concat (
26
- aws_vpc. default . * . default_network_acl_id
27
- )[0 ]
19
+ value = join (" " , aws_vpc. default . * . default_network_acl_id )
28
20
description = " The ID of the network ACL created by default on VPC creation."
29
21
}
30
22
31
23
output "vpc_default_security_group_id" {
32
- value = concat (
33
- aws_vpc. default . * . default_security_group_id
34
- )[0 ]
24
+ value = join (" " , aws_vpc. default . * . default_security_group_id )
35
25
description = " The ID of the security group created by default on VPC creation."
36
26
}
37
27
38
28
output "vpc_default_route_table_id" {
39
- value = concat (
40
- aws_vpc. default . * . default_route_table_id
41
- )[0 ]
29
+ value = join (" " , aws_vpc. default . * . default_route_table_id )
42
30
description = " The ID of the route table created by default on VPC creation."
43
31
}
44
32
45
33
output "vpc_ipv6_association_id" {
46
- value = concat (
47
- aws_vpc. default . * . ipv6_association_id
48
- )[0 ]
34
+ value = join (" " , aws_vpc. default . * . ipv6_association_id )
49
35
description = " The association ID for the IPv6 CIDR block."
50
36
}
51
37
52
38
output "ipv6_cidr_block" {
53
- value = concat (
54
- aws_vpc. default . * . ipv6_cidr_block
55
- )[0 ]
39
+ value = join (" " , aws_vpc. default . * . ipv6_cidr_block )
56
40
description = " The IPv6 CIDR block."
57
41
}
58
42
@@ -64,8 +48,6 @@ output "tags" {
64
48
# Module : INTERNET GATEWAY
65
49
# Description : Terraform internet gateway module output variables.
66
50
output "igw_id" {
67
- value = concat (
68
- aws_internet_gateway. default . * . id
69
- )[0 ]
51
+ value = join (" " , aws_internet_gateway. default . * . id )
70
52
description = " The ID of the Internet Gateway."
71
53
}
0 commit comments