mirror of
https://github.com/Sea-Haven-Industries/file-share.git
synced 2026-09-30 04:23:11 +00:00
* feat(infra): add HCP Terraform for the prod file share (PLAT-77) The prod host will live on a subnet in the syslog VPC. The data volume stays unmanaged and is attached only after a snapshot copy. * fix(infra): pin FileBrowser version to a release tag (PLAT-77) The version is interpolated into the boot script. Reject anything that is not a vX.Y.Z tag. * fix(infra): keep the file share off the public internet (PLAT-77) The instance has no public IP. Office routes use the syslog VPN gateway and other egress uses a NAT gateway. DLM targets the tagged data volume, and replacement detaches stop the instance first.
17 lines
487 B
HCL
17 lines
487 B
HCL
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
|
|
}
|