-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathoutputs.tf
More file actions
70 lines (61 loc) · 2.12 KB
/
outputs.tf
File metadata and controls
70 lines (61 loc) · 2.12 KB
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
output "region" {
description = "The AWS region this module resources resides in."
value = aws_route53profiles_profile.this.region
}
output "owner_id" {
description = "The AWS Account ID the account that created the Route53 Profile."
value = aws_route53profiles_profile.this.owner_id
}
output "arn" {
description = "The ARN of the Route53 Profile."
value = aws_route53profiles_profile.this.arn
}
output "id" {
description = "The ID of the Route53 Profile."
value = aws_route53profiles_profile.this.id
}
output "name" {
description = "The name of the Route53 Profile."
value = aws_route53profiles_profile.this.name
}
output "status" {
description = "The status of the Route53 Profile."
value = aws_route53profiles_profile.this.status
}
output "status_message" {
description = "The status message of the Route53 Profile."
value = aws_route53profiles_profile.this.status_message
}
output "resource_group" {
description = "The resource group created to manage resources in this module."
value = merge(
{
enabled = var.resource_group.enabled && var.module_tags_enabled
},
(var.resource_group.enabled && var.module_tags_enabled
? {
arn = module.resource_group[0].arn
name = module.resource_group[0].name
}
: {}
)
)
}
output "sharing" {
description = <<EOF
The configuration for sharing of the Route53 profile.
`status` - An indication of whether the profile 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 = aws_route53profiles_profile.this.share_status
shares = module.share
}
}
# output "debug" {
# value = {
# for k, v in aws_route53profiles_profile.this :
# k => v
# if !contains(["arn", "id", "name", "status", "status_message", "share_status", "tags", "tags_all", "region", "timeouts", "owner_id"], k)
# }
# }