mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-01 15:52:39 +00:00
Update config formatting that no longer works in 0.12 (#2756)
<!-- This change is generated by MagicModules. --> /cc @rileykarson
This commit is contained in:
parent
f0953ea41e
commit
082ba50b52
|
@ -50,7 +50,7 @@ resource "google_compute_autoscaler" "foobar" {
|
|||
zone = "us-central1-f"
|
||||
target = "${google_compute_instance_group_manager.foobar.self_link}"
|
||||
|
||||
autoscaling_policy = {
|
||||
autoscaling_policy {
|
||||
max_replicas = 5
|
||||
min_replicas = 1
|
||||
cooldown_period = 60
|
||||
|
|
|
@ -252,7 +252,7 @@ resource "google_compute_autoscaler" "foobar" {
|
|||
name = "%s"
|
||||
zone = "us-central1-a"
|
||||
target = "${google_compute_instance_group_manager.foobar.self_link}"
|
||||
autoscaling_policy = {
|
||||
autoscaling_policy {
|
||||
max_replicas = 5
|
||||
min_replicas = 1
|
||||
cooldown_period = 60
|
||||
|
@ -272,7 +272,7 @@ resource "google_compute_autoscaler" "foobar" {
|
|||
name = "%s"
|
||||
zone = "us-central1-a"
|
||||
target = "${google_compute_instance_group_manager.foobar.self_link}"
|
||||
autoscaling_policy = {
|
||||
autoscaling_policy {
|
||||
max_replicas = 10
|
||||
min_replicas = 1
|
||||
cooldown_period = 60
|
||||
|
@ -292,7 +292,7 @@ resource "google_compute_autoscaler" "foobar" {
|
|||
name = "%s"
|
||||
zone = "us-central1-a"
|
||||
target = "${google_compute_instance_group_manager.foobar.self_link}"
|
||||
autoscaling_policy = {
|
||||
autoscaling_policy {
|
||||
max_replicas = 10
|
||||
min_replicas = 1
|
||||
cooldown_period = 60
|
||||
|
|
|
@ -484,7 +484,7 @@ func testAccComputeInstanceGroup_update(instance string) string {
|
|||
description = "Terraform test instance group"
|
||||
name = "%s"
|
||||
zone = "us-central1-c"
|
||||
instances = [ "${google_compute_instance.ig_instance.*.self_link}" ]
|
||||
instances = "${google_compute_instance.ig_instance.*.self_link}"
|
||||
named_port {
|
||||
name = "http"
|
||||
port = "8080"
|
||||
|
@ -526,7 +526,7 @@ func testAccComputeInstanceGroup_update2(instance string) string {
|
|||
description = "Terraform test instance group"
|
||||
name = "%s"
|
||||
zone = "us-central1-c"
|
||||
instances = [ "${google_compute_instance.ig_instance.*.self_link}" ]
|
||||
instances = "${google_compute_instance.ig_instance.*.self_link}"
|
||||
|
||||
named_port {
|
||||
name = "http"
|
||||
|
@ -570,7 +570,7 @@ func testAccComputeInstanceGroup_recreateInstances(instance string) string {
|
|||
description = "Terraform test instance group"
|
||||
name = "%s"
|
||||
zone = "us-central1-c"
|
||||
instances = [ "${google_compute_instance.ig_instance.*.self_link}" ]
|
||||
instances = "${google_compute_instance.ig_instance.*.self_link}"
|
||||
named_port {
|
||||
name = "http"
|
||||
port = "8080"
|
||||
|
|
|
@ -2851,12 +2851,12 @@ resource "google_compute_instance" "foobar" {
|
|||
network_interface {
|
||||
subnetwork = "${google_compute_subnetwork.inst-test-subnetwork.self_link}"
|
||||
|
||||
alias_ip_range = [
|
||||
{
|
||||
alias_ip_range {
|
||||
subnetwork_range_name = "${google_compute_subnetwork.inst-test-subnetwork.secondary_ip_range.0.range_name}"
|
||||
ip_cidr_range = "172.16.0.0/24"
|
||||
},
|
||||
{
|
||||
}
|
||||
|
||||
alias_ip_range {
|
||||
subnetwork_range_name = "${google_compute_subnetwork.inst-test-subnetwork.secondary_ip_range.1.range_name}"
|
||||
ip_cidr_range = "10.1.0.0/20"
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ resource "google_compute_region_autoscaler" "foobar" {
|
|||
region = "us-central1"
|
||||
target = "${google_compute_region_instance_group_manager.foobar.self_link}"
|
||||
|
||||
autoscaling_policy = {
|
||||
autoscaling_policy {
|
||||
max_replicas = 5
|
||||
min_replicas = 1
|
||||
cooldown_period = 60
|
||||
|
|
|
@ -179,7 +179,7 @@ resource "google_compute_region_autoscaler" "foobar" {
|
|||
name = "%s"
|
||||
region = "us-central1"
|
||||
target = "${google_compute_region_instance_group_manager.foobar.self_link}"
|
||||
autoscaling_policy = {
|
||||
autoscaling_policy {
|
||||
max_replicas = 5
|
||||
min_replicas = 1
|
||||
cooldown_period = 60
|
||||
|
@ -240,7 +240,7 @@ resource "google_compute_region_autoscaler" "foobar" {
|
|||
name = "%s"
|
||||
region = "us-central1"
|
||||
target = "${google_compute_region_instance_group_manager.foobar.self_link}"
|
||||
autoscaling_policy = {
|
||||
autoscaling_policy {
|
||||
max_replicas = 10
|
||||
min_replicas = 1
|
||||
cooldown_period = 60
|
||||
|
|
|
@ -379,7 +379,7 @@ resource "google_compute_subnetwork" "network-with-private-secondary-ip-ranges"
|
|||
secondary_ip_range {
|
||||
range_name = "tf-test-secondary-range-update2"
|
||||
ip_cidr_range = "192.168.11.0/24"
|
||||
},
|
||||
}
|
||||
}
|
||||
`, cnName, subnetworkName)
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ resource "google_compute_autoscaler" "foobar" {
|
|||
zone = "us-central1-f"
|
||||
target = "${google_compute_instance_group_manager.foobar.self_link}"
|
||||
|
||||
autoscaling_policy = {
|
||||
autoscaling_policy {
|
||||
max_replicas = 5
|
||||
min_replicas = 1
|
||||
cooldown_period = 60
|
||||
|
|
|
@ -48,7 +48,7 @@ resource "google_compute_region_autoscaler" "foobar" {
|
|||
region = "us-central1"
|
||||
target = "${google_compute_region_instance_group_manager.foobar.self_link}"
|
||||
|
||||
autoscaling_policy = {
|
||||
autoscaling_policy {
|
||||
max_replicas = 5
|
||||
min_replicas = 1
|
||||
cooldown_period = 60
|
||||
|
|
|
@ -83,7 +83,7 @@ resource "google_compute_router_nat" "advanced-nat" {
|
|||
router = "${google_compute_router.router.name}"
|
||||
region = "us-central1"
|
||||
nat_ip_allocate_option = "MANUAL_ONLY"
|
||||
nat_ips = ["${google_compute_address.address.*.self_link}"]
|
||||
nat_ips = "${google_compute_address.address.*.self_link}"
|
||||
source_subnetwork_ip_ranges_to_nat = "LIST_OF_SUBNETWORKS"
|
||||
subnetwork {
|
||||
name = "${google_compute_subnetwork.subnetwork.self_link}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user