-
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.
Adding deployment type to beta provider. (#12560)
- Loading branch information
1 parent
3141d28
commit 8fa7b5c
Showing
3 changed files
with
126 additions
and
4 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_basic_beta.tf.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}}" { | ||
provider = google-beta | ||
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" | ||
} | ||
depends_on = [google_service_networking_connection.default] | ||
} | ||
|
||
resource "google_compute_network" "network" { | ||
provider = google-beta | ||
name = "{{index $.Vars "network_name"}}" | ||
auto_create_subnetworks = true | ||
mtu = 8896 | ||
} | ||
|
||
# Create an IP address | ||
resource "google_compute_global_address" "private_ip_alloc" { | ||
provider = google-beta | ||
name = "{{index $.Vars "address_name"}}" | ||
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] | ||
} |
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