generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
outputs.tf
64 lines (51 loc) · 2.41 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
################################################################################
# File System
################################################################################
output "arn" {
description = "Amazon Resource Name of the file system"
value = try(aws_efs_file_system.this[0].arn, null)
}
output "id" {
description = "The ID that identifies the file system (e.g., `fs-ccfc0d65`)"
value = try(aws_efs_file_system.this[0].id, null)
}
output "dns_name" {
description = "The DNS name for the filesystem per [documented convention](http://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-cmd-dns-name.html)"
value = try(aws_efs_file_system.this[0].dns_name, null)
}
output "size_in_bytes" {
description = "The latest known metered size (in bytes) of data stored in the file system, the value is not the exact size that the file system was at any point in time"
value = try(aws_efs_file_system.this[0].size_in_bytes, null)
}
################################################################################
# Mount Target(s)
################################################################################
output "mount_targets" {
description = "Map of mount targets created and their attributes"
value = aws_efs_mount_target.this
}
################################################################################
# Security Group
################################################################################
output "security_group_arn" {
description = "ARN of the security group"
value = try(aws_security_group.this[0].arn, null)
}
output "security_group_id" {
description = "ID of the security group"
value = try(aws_security_group.this[0].id, null)
}
################################################################################
# Access Point(s)
################################################################################
output "access_points" {
description = "Map of access points created and their attributes"
value = aws_efs_access_point.this
}
################################################################################
# Replication Configuration
################################################################################
output "replication_configuration_destination_file_system_id" {
description = "The file system ID of the replica"
value = try(aws_efs_replication_configuration.this[0].destination[0].file_system_id, null)
}