file-share/terraform/locals.tf
Adam Moussa 7cb3f6510f
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.
2026-09-28 16:38:03 -04:00

28 lines
927 B
HCL

locals {
project = "file-share"
environment = "prod"
hcp_project = "seahaven-prod"
hcp_workspace = "file-share-prod"
apply_role = "hcptf-file-share"
plan_role = "hcptf-file-share-plan"
stack_name = local.project
stack_prefix = "file-share-"
instance_role_name = "file-share-role"
instance_profile_name = "file-share-profile"
boundary_name = "file-share-instance-boundary"
office_lan_cidrs = ["10.10.0.0/16", "10.30.0.0/16"]
subnet_cidr = "10.40.20.0/24"
subnet_az = "us-east-1a"
create_instance = var.data_volume_id != ""
dlm_service_role_arn = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/aws-service-role/dlm.amazonaws.com/AWSServiceRoleForDataLifecycleManager"
user_data = templatefile("${path.module}/user_data.sh.tftpl", {
aws_region = var.aws_region
filebrowser_version = var.filebrowser_version
})
}