-
Notifications
You must be signed in to change notification settings - Fork 19
/
outputs.tf
75 lines (62 loc) · 2.42 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#Module : VPC
#Description : Terraform module to VPC outputs.
output "vpc_id" {
value = join("", aws_vpc.default[*].id)
description = "The ID of the VPC."
}
output "vpc_arn" {
value = join("", aws_vpc.default[*].arn)
description = "The ARN of the VPC"
}
output "vpc_cidr_block" {
value = join("", aws_vpc.default[*].cidr_block)
description = "The CIDR block of the VPC."
}
output "ipv6_cidr_block" {
value = join("", aws_vpc.default[*].ipv6_cidr_block)
description = "The IPv6 CIDR block."
}
output "vpc_ipv6_association_id" {
value = join("", aws_vpc.default[*].ipv6_association_id)
description = "The association ID for the IPv6 CIDR block."
}
output "ipv6_cidr_block_network_border_group" {
value = join("", aws_vpc.default[*].ipv6_cidr_block_network_border_group)
description = "The IPv6 Network Border Group Zone name"
}
output "vpc_main_route_table_id" {
value = join("", aws_vpc.default[*].main_route_table_id)
description = "The ID of the main route table associated with this VPC."
}
output "vpc_default_network_acl_id" {
value = join("", aws_vpc.default[*].default_network_acl_id)
description = "The ID of the network ACL created by default on VPC creation."
}
output "vpc_default_security_group_id" {
value = join("", aws_vpc.default[*].default_security_group_id)
description = "The ID of the security group created by default on VPC creation."
}
output "vpc_default_route_table_id" {
value = join("", aws_vpc.default[*].default_route_table_id)
description = "The ID of the route table created by default on VPC creation."
}
output "tags" {
value = module.labels.tags
description = "A mapping of tags to assign to the resource."
}
####-------------------------------------------------------------------------------------
#Module : INTERNET GATEWAY
#Description : Terraform internet gateway module output variables.
####--------------------------------------------------------------------------------------
output "igw_id" {
value = join("", aws_internet_gateway.default[*].id)
description = "The ID of the Internet Gateway."
}
output "ipv6_egress_only_igw_id" {
value = join("", aws_egress_only_internet_gateway.default[*].id)
description = "The ID of the egress-only Internet Gateway"
}
output "arn" {
value = join("", aws_flow_log.vpc_flow_log[*].arn)
description = "Amazon Resource Name (ARN) of VPC"
}