Skip to content

Commit

Permalink
Add outputs for EIP private and public IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
snemetz committed May 29, 2022
1 parent e4fe208 commit 328bd9f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 328bd9f

Please sign in to comment.