-
Notifications
You must be signed in to change notification settings - Fork 15
/
outputs.tf
29 lines (24 loc) · 1.18 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
output "arn" {
value = var.sftp_type == "PUBLIC" ? join(",", aws_transfer_server.public[*].arn) : join(",", aws_transfer_server.vpc[*].arn)
description = "ARN of transfer server"
}
output "id" {
value = local.server_id
description = "ID of transfer server"
}
output "endpoint" {
value = local.server_ep
description = "Endpoint of transfer server"
}
output "domain_name" {
value = var.hosted_zone == null ? null : join(",", aws_route53_record.sftp[*].fqdn)
description = "Custom DNS name mapped in Route53 for transfer server"
}
output "sftp_sg_id" {
value = var.sftp_type == "VPC" && lookup(var.endpoint_details, "security_group_ids", null) == null ? join(",", aws_security_group.sftp_vpc[*].id) : null
description = "ID of security group created for SFTP server. Available only if SFTP type is VPC and security group is not provided by you"
}
output "sftp_eip" {
value = var.sftp_type == "VPC" && lookup(var.endpoint_details, "address_allocation_ids", null) == null ? aws_eip.sftp_vpc[*].public_ip : null
description = "Elastic IP attached to the SFTP server. Available only if SFTP type is VPC and allocation id is not provided by you"
}