-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parallelstore: adding deployment type to beta provider and making net…
…work field required. (#12558)
- Loading branch information
1 parent
2905156
commit 4840e02
Showing
3 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
mmv1/templates/terraform/examples/parallelstore_instance_baic_beta.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
resource "google_parallelstore_instance" "{{$.PrimaryResourceId}}" { | ||
instance_id = "{{index $.Vars "name"}}" | ||
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" | ||
} | ||
provider = google-beta | ||
depends_on = [google_service_networking_connection.default] | ||
} | ||
|
||
resource "google_compute_network" "network" { | ||
name = "{{index $.Vars "network_name"}}" | ||
auto_create_subnetworks = true | ||
mtu = 8896 | ||
provider = google-beta | ||
} | ||
|
||
# Create an IP address | ||
resource "google_compute_global_address" "private_ip_alloc" { | ||
name = "{{index $.Vars "address_name"}}" | ||
purpose = "VPC_PEERING" | ||
address_type = "INTERNAL" | ||
prefix_length = 24 | ||
provider = google-beta | ||
network = google_compute_network.network.id | ||
} | ||
|
||
# Create a private connection | ||
resource "google_service_networking_connection" "default" { | ||
network = google_compute_network.network.id | ||
service = "servicenetworking.googleapis.com" | ||
provider = google-beta | ||
reserved_peering_ranges = [google_compute_global_address.private_ip_alloc.name] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters