mirror of
https://github.com/Sea-Haven-Industries/file-share.git
synced 2026-10-03 20:03:17 +00:00
18 lines
487 B
Terraform
18 lines
487 B
Terraform
|
|
output "private_ip" {
|
||
|
|
description = "SMB (smb://ip/files), FileBrowser (http://ip:8080), and SFTP. Clients use this address, not the public IP."
|
||
|
|
value = one(aws_instance.this[*].private_ip)
|
||
|
|
}
|
||
|
|
|
||
|
|
output "public_ip" {
|
||
|
|
description = "Always empty. Egress uses the NAT gateway. Clients use private_ip."
|
||
|
|
value = one(aws_instance.this[*].public_ip)
|
||
|
|
}
|
||
|
|
|
||
|
|
output "instance_id" {
|
||
|
|
value = one(aws_instance.this[*].id)
|
||
|
|
}
|
||
|
|
|
||
|
|
output "subnet_id" {
|
||
|
|
value = aws_subnet.file_share.id
|
||
|
|
}
|