Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tiers and nfs_export_options #6828

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changelog/3766.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```release-note:enhancement
filestore: added support for filestore high scale tier.
```
```release-note:enhancement
filestore: added `nfs_export_options` field on `google_filestore_instance.file_shares`. (beta-only)
```
4 changes: 2 additions & 2 deletions google/resource_filestore_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ addresses reserved for this instance.`,
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{"TIER_UNSPECIFIED", "STANDARD", "PREMIUM"}, false),
Description: `The service tier of the instance. Possible values: ["TIER_UNSPECIFIED", "STANDARD", "PREMIUM"]`,
ValidateFunc: validation.StringInSlice([]string{"TIER_UNSPECIFIED", "STANDARD", "PREMIUM", "BASIC_HDD", "BASIC_SSD", "HIGH_SCALE_SSD"}, false),
Description: `The service tier of the instance. Possible values: ["TIER_UNSPECIFIED", "STANDARD", "PREMIUM", "BASIC_HDD", "BASIC_SSD", "HIGH_SCALE_SSD"]`,
},
"zone": {
Type: schema.TypeString,
Expand Down
42 changes: 42 additions & 0 deletions website/docs/r/filestore_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,45 @@ resource "google_filestore_instance" "instance" {
}
}
```
<div class = "oics-button" style="float: right; margin: 0 0 -15px">
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_working_dir=filestore_instance_full&cloudshell_image=gcr.io%2Fgraphite-cloud-shell-images%2Fterraform%3Alatest&open_in_editor=main.tf&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md" target="_blank">
<img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;">
</a>
</div>
## Example Usage - Filestore Instance Full


```hcl
resource "google_filestore_instance" "instance" {
name = "test-instance"
zone = "us-central1-b"
tier = "BASIC_SSD"

file_shares {
capacity_gb = 2660
name = "share1"

nfs_export_options {
ip_ranges = ["10.0.0.0/24"]
access_mode = "READ_WRITE"
squash_mode = "NO_ROOT_SQUASH"
}

nfs_export_options {
ip_ranges = ["10.10.0.0/24"]
access_mode = "READ_ONLY"
squash_mode = "ROOT_SQUASH"
anon_uid = 123
anon_gid = 456
}
}

networks {
network = "default"
modes = ["MODE_IPV4"]
}
}
```

## Argument Reference

Expand All @@ -76,6 +115,9 @@ The following arguments are supported:
* `TIER_UNSPECIFIED`
* `STANDARD`
* `PREMIUM`
* `BASIC_HDD`
* `BASIC_SSD`
* `HIGH_SCALE_SSD`

* `file_shares` -
(Required)
Expand Down