-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutputs.tf
51 lines (43 loc) · 1.88 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
output "id" {
description = "The ID of the IPAM resource discovery."
value = aws_vpc_ipam_resource_discovery.this.id
}
output "arn" {
description = "The ARN of the IPAM resource discovery."
value = aws_vpc_ipam_resource_discovery.this.arn
}
output "owner_id" {
description = "The account ID for the account that manages the Resource Discovery."
value = aws_vpc_ipam_resource_discovery.this.owner_id
}
output "region" {
description = "The home region of the Resource Discovery."
value = aws_vpc_ipam_resource_discovery.this.ipam_resource_discovery_region
}
output "name" {
description = "The name of the IPAM resource discovery."
value = local.metadata.name
}
output "description" {
description = "The description of the IPAM resource discovery."
value = aws_vpc_ipam_resource_discovery.this.description
}
output "operating_regions" {
description = "A set of operating regions for the IPAM resource discovery."
value = aws_vpc_ipam_resource_discovery.this.operating_regions[*].region_name
}
output "is_default" {
description = "Whether the resource discovery is the default. The default resource discovery is the resource discovery automatically created when you create an IPAM."
value = aws_vpc_ipam_resource_discovery.this.is_default
}
output "sharing" {
description = <<EOF
The configuration for sharing of the IPAM resource discovery.
`status` - An indication of whether the IPAM resource discovery is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are `NOT_SHARED`, `SHARED_BY_ME` or `SHARED_WITH_ME`.
`shares` - The list of resource shares via RAM (Resource Access Manager).
EOF
value = {
status = length(module.share) > 0 ? "SHARED_BY_ME" : "NOT_SHARED"
shares = module.share
}
}