-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add enabled variable and update docs (#21)
* Add enabled variable and update docs So we can boolean creation of these resources from the caller module * Update main.tf Co-Authored-By: joshmyers <[email protected]> * Update outputs.tf Co-Authored-By: joshmyers <[email protected]> * Update outputs.tf Co-Authored-By: joshmyers <[email protected]> * Update outputs.tf Co-Authored-By: joshmyers <[email protected]> * Update outputs.tf Co-Authored-By: joshmyers <[email protected]> * Update outputs.tf Co-Authored-By: joshmyers <[email protected]> * Update variables.tf Co-Authored-By: joshmyers <[email protected]> * Update main.tf Co-Authored-By: joshmyers <[email protected]> * Update outputs.tf Co-Authored-By: joshmyers <[email protected]> * Update README docs
- Loading branch information
Showing
5 changed files
with
41 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
output "arn" { | ||
value = "${aws_efs_file_system.default.arn}" | ||
value = "${local.enabled ? join("", aws_efs_file_system.default.*.arn) : "" }" | ||
description = "EFS ARN" | ||
} | ||
|
||
output "id" { | ||
value = "${aws_efs_file_system.default.id}" | ||
value = "${local.enabled ? join("", aws_efs_file_system.default.*.id) : "" }" | ||
description = "EFS ID" | ||
} | ||
|
||
output "host" { | ||
value = "${module.dns.hostname}" | ||
value = "${local.enabled ? module.dns.hostname : "" }" | ||
description = "Assigned DNS-record for the EFS" | ||
} | ||
|
||
output "dns_name" { | ||
value = "${aws_efs_file_system.default.dns_name}" | ||
value = "${local.enabled ? local.dns_name : "" }" | ||
description = "DNS name" | ||
} | ||
|
||
output "mount_target_dns_names" { | ||
value = ["${aws_efs_mount_target.default.*.dns_name}"] | ||
description = "List of DNS names for the given subnet/AZ per documented convention." | ||
value = ["${local.enabled ? aws_efs_mount_target.default.*.dns_name : list("") }"] | ||
description = "List of DNS names for the given subnet/AZ per documented convention" | ||
} | ||
|
||
output "mount_target_ids" { | ||
value = ["${aws_efs_mount_target.default.*.id}"] | ||
value = ["${local.enabled ? aws_efs_mount_target.default.*.id : list("") }"] | ||
description = "List of IDs of the EFS mount targets (one per Availability Zone)" | ||
} | ||
|
||
output "mount_target_ips" { | ||
value = ["${aws_efs_mount_target.default.*.ip_address}"] | ||
value = ["${local.enabled ? aws_efs_mount_target.default.*.ip_address : list("") }"] | ||
description = "List of IPs of the EFS mount targets (one per Availability Zone)" | ||
} | ||
|
||
output "network_interface_ids" { | ||
value = ["${aws_efs_mount_target.default.*.network_interface_id}"] | ||
description = "The IDs of the network interface that Amazon EFS created when it created the mount target." | ||
value = ["${local.enabled ? aws_efs_mount_target.default.*.network_interface_id : list("") }"] | ||
description = "The IDs of the network interface that Amazon EFS created when it created the mount target" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters