nfs

DeimosCloud/nfs/google

Terraform Module HCL GOOGLE

Terraform Google NFS

Install
module "nfs" {
source = "DeimosCloud/nfs/google"
version = "1.0.1"
}
plain text: /constructs/tfmod-deimoscloud-nfs-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform-google-NFS A terraform module to setup NFS on a VM on GCP. This is not FileStore. Filestore minimum storage is 1TB which is $200 per month. For testing purposes, a smaller NFS setup is required. This compensates for that. Usage ``hcl NFS server VM to be used by apps such as magento module "nfs" { source = "." name_prefix = "${var.project_name}-nfs-${var.environment}" labels = local.common_labels subnetwork = module.vpc.public_subnetwork project = var.project_id network = local.vpc_name export_paths = [ "/share/media", "/share/static", ] capacity_gb = "100" } ` Doc generation Code formatting and documentation for variables and outputs is generated using pre-commit-terraform hooks which uses terraform-docs. And install terraform-docs with `bash go get github.com/segmentio/terraform

Inputs (19)
NameTypeDescriptionDefault
networkstringNetwork to deploy to. Only one of network or subnetwork should be specified. required
regionstringRegion where the instances should be created. required
subnetworkstringSubnet to deploy to. Only one of network or subnetwork should be specified. required
projectstring(Optional) The ID of the project in which the resource belongs. If it is not pro required
zonestringThe Compute Instance Zone required
network_tierstringIP Address Network Tier"STANDARD"
disk_typestring(Optional) The GCE disk type. Can be either pd-ssd, local-ssd, pd-balanced or pd"pd-standard"
source_image_projectstring"ubuntu-os-cloud"
service_accountobject({ email = string, Service account to attach to the instance. See https://www.terraform.io/docs/pro{ "email": null, "scopes": [] }
tagslistAdditional network tags to attach to the instance nfs instance[]
labelsmap (Optional) Resource labels to represent user-provided metadata.{}
export_pathslistPaths to exports[ "/share" ]
image_familystring"ubuntu-2004-lts"
attach_public_ipboolWhether to make the instance public or notfalse
metadatamapMetadata to be added to the compute instance, provided as a map{}
capacity_gbstring File share capacity in GiB."50"
machine_typestringMachine type to create, e.g. n1-standard-1"f1-micro"
auto_delete_diskboolWhether or not the boot disk should be auto-deletedfalse
name_prefixstringThe name prefix for the instance."nfs-instance-template"
Outputs (3)
public_ip — Instance Public IP
internal_ip — Instance Internal IP
disk_size — Size of disk used for NFS
Resources (5)
google_compute_addressgoogle_compute_diskgoogle_compute_firewallgoogle_compute_instance_from_templategoogle_compute_instance_template
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud GOOGLE
★ Stars2
Forks5
Total downloads5.9k
Inputs19
Outputs3
Resources5
NamespaceDeimosCloud
Updated