nfs
DeimosCloud/nfs/google
Terraform Google NFS
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
| Name | Type | Description | Default |
|---|---|---|---|
| network | string | Network to deploy to. Only one of network or subnetwork should be specified. | required |
| region | string | Region where the instances should be created. | required |
| subnetwork | string | Subnet to deploy to. Only one of network or subnetwork should be specified. | required |
| project | string | (Optional) The ID of the project in which the resource belongs. If it is not pro | required |
| zone | string | The Compute Instance Zone | required |
| network_tier | string | IP Address Network Tier | "STANDARD" |
| disk_type | string | (Optional) The GCE disk type. Can be either pd-ssd, local-ssd, pd-balanced or pd | "pd-standard" |
| source_image_project | string | "ubuntu-os-cloud" | |
| service_account | object({ email = string, | Service account to attach to the instance. See https://www.terraform.io/docs/pro | {
"email": null,
"scopes": []
} |
| tags | list | Additional network tags to attach to the instance nfs instance | [] |
| labels | map | (Optional) Resource labels to represent user-provided metadata. | {} |
| export_paths | list | Paths to exports | [
"/share"
] |
| image_family | string | "ubuntu-2004-lts" | |
| attach_public_ip | bool | Whether to make the instance public or not | false |
| metadata | map | Metadata to be added to the compute instance, provided as a map | {} |
| capacity_gb | string | File share capacity in GiB. | "50" |
| machine_type | string | Machine type to create, e.g. n1-standard-1 | "f1-micro" |
| auto_delete_disk | bool | Whether or not the boot disk should be auto-deleted | false |
| name_prefix | string | The name prefix for the instance. | "nfs-instance-template" |
public_ip — Instance Public IPinternal_ip — Instance Internal IPdisk_size — Size of disk used for NFS