Skip to content

Commit

Permalink
Add detailed description. Add new test.
Browse files Browse the repository at this point in the history
  • Loading branch information
DendoD96 committed Mar 29, 2024
1 parent 0f1a60a commit ce6c49d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mmv1/products/filestore/Instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ examples:
primary_resource_id: 'instance'
vars:
instance_name: 'test-instance'
- !ruby/object:Provider::Terraform::Examples
name: 'filestore_instance_protocol'
primary_resource_id: 'instance'
min_version: beta
vars:
instance_name: 'test-instance'
- !ruby/object:Provider::Terraform::Examples
name: 'filestore_instance_enterprise'
primary_resource_id: 'instance'
Expand Down Expand Up @@ -102,8 +108,12 @@ properties:
name: 'protocol'
description: |
Either NFSv3, for using NFS version 3 as file sharing protocol,
or NFSv4.1, for using NFS version 4.1 as file sharing protocol. The default is NFSv3.
or NFSv4.1, for using NFS version 4.1 as file sharing protocol.
NFSv4.1 can be used with HIGH_SCALE_SSD, ZONAL, REGIONAL and ENTERPRISE.
The default is NFSv3.
default_value: :NFS_V3
min_version: 'beta'
immutable: true
values:
- :NFS_V3
- :NFS_V4_1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
resource "google_filestore_instance" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]["instance_name"] %>"
location = "us-central1"
tier = "ENTERPRISE"
protocol = "NFS_V4_1"

file_shares {
capacity_gb = 1024
name = "share1"
}

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

}

0 comments on commit ce6c49d

Please sign in to comment.