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

Adding deployment type to beta provider. #20732

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
3 changes: 3 additions & 0 deletions .changelog/12560.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
parallelstore: added `deployment_type` to `google_parallelstore_instance`
```
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ func TestAccParallelstoreInstance_parallelstoreInstanceBasicExample_update(t *te
}

acctest.VcrTest(t, resource.TestCase{
PreCheck: func() { acctest.AccTestPreCheck(t) },
PreCheck: func() { acctest.AccTestPreCheck(t) },

ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
CheckDestroy: testAccCheckParallelstoreInstanceDestroyProducer(t),

CheckDestroy: testAccCheckParallelstoreInstanceDestroyProducer(t),
Steps: []resource.TestStep{

{
Config: testAccParallelstoreInstance_parallelstoreInstanceBasicExample_basic(context),
},
Expand Down Expand Up @@ -111,7 +114,6 @@ resource "google_parallelstore_instance" "instance" {
description = "test instance updated"
capacity_gib = 12000
network = google_compute_network.network.name

labels = {
test = "value23"
}
Expand Down
58 changes: 58 additions & 0 deletions website/docs/r/parallelstore_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,56 @@ A Parallelstore 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_image=gcr.io%2Fcloudshell-images%2Fcloudshell%3Alatest&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md&cloudshell_working_dir=parallelstore_instance_basic_beta&open_in_editor=main.tf" 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 - Parallelstore Instance Basic Beta


```hcl
resource "google_parallelstore_instance" "instance" {
provider = google-beta
instance_id = "instance"
location = "us-central1-a"
description = "test instance"
capacity_gib = 12000
network = google_compute_network.network.name
file_stripe_level = "FILE_STRIPE_LEVEL_MIN"
directory_stripe_level = "DIRECTORY_STRIPE_LEVEL_MIN"
deployment_type = "SCRATCH"
labels = {
test = "value"
}
depends_on = [google_service_networking_connection.default]
}

resource "google_compute_network" "network" {
provider = google-beta
name = "network"
auto_create_subnetworks = true
mtu = 8896
}

# Create an IP address
resource "google_compute_global_address" "private_ip_alloc" {
provider = google-beta
name = "address"
purpose = "VPC_PEERING"
address_type = "INTERNAL"
prefix_length = 24
network = google_compute_network.network.id
}

# Create a private connection
resource "google_service_networking_connection" "default" {
provider = google-beta
network = google_compute_network.network.id
service = "servicenetworking.googleapis.com"
reserved_peering_ranges = [google_compute_global_address.private_ip_alloc.name]
}
```
<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_image=gcr.io%2Fcloudshell-images%2Fcloudshell%3Alatest&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md&cloudshell_working_dir=parallelstore_instance_basic&open_in_editor=main.tf" 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%;">
Expand Down Expand Up @@ -157,6 +207,14 @@ The following arguments are supported:
DIRECTORY_STRIPE_LEVEL_BALANCED
DIRECTORY_STRIPE_LEVEL_MAX

* `deployment_type` -
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
Parallelstore Instance deployment type.
Possible values:
DEPLOYMENT_TYPE_UNSPECIFIED
SCRATCH
PERSISTENT

* `project` - (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.

Expand Down
Loading