forked from cloudposse/terraform-aws-transfer-sftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
27 lines (23 loc) · 876 Bytes
/
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
output "id" {
description = "ID of the created example"
value = module.this.enabled ? aws_transfer_server.default.*.id : null
}
output "transfer_endpoint" {
description = "The endpoint of the Transfer Server"
value = module.this.enabled ? join("", aws_transfer_server.default.*.endpoint) : null
}
output "elastic_ips" {
description = "Provisioned Elastic IPs"
value = module.this.enabled && var.eip_enabled ? aws_eip.sftp.*.id : null
}
output "s3_access_role_arns" {
description = "Role ARNs for the S3 access"
value = { for user, val in aws_iam_role.s3_access_for_sftp_users : user => val.arn }
}
output "sftp_vpc_endpoint_dns_names" {
description = "DNS names of the VPC Endpoints created for the AWS Transfer servers"
value = {
for k, v in data.aws_vpc_endpoint.sftp_vpc_endpoint :
k => v.dns_entry[0].dns_name
}
}