|
| 1 | +// EFS File System outputs |
| 2 | +output "dns_name" { |
| 3 | + description = "FQDN of the EFS volume" |
| 4 | + value = "${module.efs.dns_name}" |
| 5 | +} |
| 6 | + |
| 7 | +output "id" { |
| 8 | + description = "ID of EFS" |
| 9 | + value = "${module.efs.id}" |
| 10 | +} |
| 11 | + |
| 12 | +output "kms_key_id" { |
| 13 | + description = "" |
| 14 | + value = "${module.efs.kms_key_id}" |
| 15 | +} |
| 16 | + |
| 17 | +output "name" { |
| 18 | + description = "Service name that was passed in. This is to make creating mount points easier" |
| 19 | + value = "${module.efs.name}" |
| 20 | +} |
| 21 | + |
| 22 | +// EFS Mount Target outputs |
| 23 | +/* |
| 24 | +# Same as EFS mount_target_dns_names |
| 25 | +output "mount_target_dns_names" { |
| 26 | + description = "List of DNS names of the EFS mount targets" |
| 27 | + value = ["${aws_efs_mount_target.default.*.dns_name}"] |
| 28 | +} |
| 29 | +*/ |
| 30 | +output "mount_target_ids" { |
| 31 | + description = "List of IDs of the EFS mount targets" |
| 32 | + value = "${module.efs.mount_target_ids}" |
| 33 | +} |
| 34 | + |
| 35 | +output "mount_target_ips" { |
| 36 | + description = "List of IPs of the EFS mount targets" |
| 37 | + value = "${module.efs.mount_target_ips}" |
| 38 | +} |
| 39 | + |
| 40 | +output "mount_target_net_intf_ids" { |
| 41 | + description = "List of network interface IDs of the EFS mount targets" |
| 42 | + value = "${module.efs.mount_target_net_intf_ids}" |
| 43 | +} |
| 44 | + |
| 45 | +// Other resources |
| 46 | +output "security_group" { |
| 47 | + description = "" |
| 48 | + value = "${module.efs.security_group}" |
| 49 | +} |
| 50 | + |
| 51 | +// Submodules output |
| 52 | +output "host" { |
| 53 | + description = "Assigned DNS-record for the EFS" |
| 54 | + value = "${module.efs.host}" |
| 55 | +} |
0 commit comments