From 328bd9f4154772dd18aad9cdef32d33f2a120989 Mon Sep 17 00:00:00 2001 From: Steven Nemetz Date: Sun, 29 May 2022 09:11:48 -0700 Subject: [PATCH] Add outputs for EIP private and public IPs --- outputs.tf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/outputs.tf b/outputs.tf index 80e0352..0086326 100644 --- a/outputs.tf +++ b/outputs.tf @@ -9,10 +9,19 @@ output "transfer_endpoint" { } output "elastic_ips" { - description = "Provisioned Elastic IPs" + description = "Provisioned Elastic IP IDs" value = module.this.enabled && var.eip_enabled ? aws_eip.sftp.*.id : null } +output "elastic_ip_private_ips" { + description = "Provisioned Elastic IP private addresses" + value = module.this.enabled && var.eip_enabled ? aws_eip.sftp.*.private_ip : null +} +output "elastic_ip_public_ips" { + description = "Provisioned Elastic IP public addresses" + value = module.this.enabled && var.eip_enabled ? aws_eip.sftp.*.public_ip : null +} + output "transfer_id" { description = "The id of the transfer server" value = module.this.enabled ? join("", aws_transfer_server.default.*.id) : null