mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-28 22:16:04 +00:00
Add = to map declarations in examples/tests (#2755)
<!-- This change is generated by MagicModules. --> /cc @rileykarson
This commit is contained in:
parent
ea84b247c5
commit
2ab6d1995f
@ -110,16 +110,16 @@ resource "google_compute_instance" "foo" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
baz = "qux"
|
baz = "qux"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
startup-script = "echo Hello"
|
startup-script = "echo Hello"
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
my_key = "my_value"
|
my_key = "my_value"
|
||||||
my_other_key = "my_other_value"
|
my_other_key = "my_other_value"
|
||||||
}
|
}
|
||||||
|
@ -245,7 +245,7 @@ data "google_storage_object_signed_url" "story_url" {
|
|||||||
data "google_storage_object_signed_url" "story_url_w_headers" {
|
data "google_storage_object_signed_url" "story_url_w_headers" {
|
||||||
bucket = "${google_storage_bucket.bucket.name}"
|
bucket = "${google_storage_bucket.bucket.name}"
|
||||||
path = "${google_storage_bucket_object.story.name}"
|
path = "${google_storage_bucket_object.story.name}"
|
||||||
extension_headers {
|
extension_headers = {
|
||||||
x-goog-test = "foo"
|
x-goog-test = "foo"
|
||||||
x-goog-if-generation-match = 1
|
x-goog-if-generation-match = 1
|
||||||
}
|
}
|
||||||
|
@ -190,7 +190,7 @@ resource "google_bigquery_dataset" "test" {
|
|||||||
default_partition_expiration_ms = 3600000
|
default_partition_expiration_ms = 3600000
|
||||||
default_table_expiration_ms = 3600000
|
default_table_expiration_ms = 3600000
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
env = "foo"
|
env = "foo"
|
||||||
default_table_expiration_ms = 3600000
|
default_table_expiration_ms = 3600000
|
||||||
}
|
}
|
||||||
@ -207,7 +207,7 @@ resource "google_bigquery_dataset" "test" {
|
|||||||
default_partition_expiration_ms = 7200000
|
default_partition_expiration_ms = 7200000
|
||||||
default_table_expiration_ms = 7200000
|
default_table_expiration_ms = 7200000
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
env = "bar"
|
env = "bar"
|
||||||
default_table_expiration_ms = 7200000
|
default_table_expiration_ms = 7200000
|
||||||
}
|
}
|
||||||
@ -223,7 +223,7 @@ resource "google_bigquery_dataset" "test" {
|
|||||||
location = "%s"
|
location = "%s"
|
||||||
default_table_expiration_ms = 3600000
|
default_table_expiration_ms = 3600000
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
env = "foo"
|
env = "foo"
|
||||||
default_table_expiration_ms = 3600000
|
default_table_expiration_ms = 3600000
|
||||||
}
|
}
|
||||||
@ -240,7 +240,7 @@ resource "google_bigquery_dataset" "access_test" {
|
|||||||
user_by_email = "Joe@example.com"
|
user_by_email = "Joe@example.com"
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
env = "foo"
|
env = "foo"
|
||||||
default_table_expiration_ms = 3600000
|
default_table_expiration_ms = 3600000
|
||||||
}
|
}
|
||||||
@ -261,7 +261,7 @@ resource "google_bigquery_dataset" "access_test" {
|
|||||||
domain = "example.com"
|
domain = "example.com"
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
env = "foo"
|
env = "foo"
|
||||||
default_table_expiration_ms = 3600000
|
default_table_expiration_ms = 3600000
|
||||||
}
|
}
|
||||||
@ -305,7 +305,7 @@ resource "google_bigquery_dataset" "access_test" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
env = "foo"
|
env = "foo"
|
||||||
default_table_expiration_ms = 3600000
|
default_table_expiration_ms = 3600000
|
||||||
}
|
}
|
||||||
|
@ -300,7 +300,7 @@ resource "google_cloudbuild_trigger" "filename_build_trigger" {
|
|||||||
branch_name = "master"
|
branch_name = "master"
|
||||||
repo_name = "some-repo"
|
repo_name = "some-repo"
|
||||||
}
|
}
|
||||||
substitutions {
|
substitutions = {
|
||||||
_FOO = "bar"
|
_FOO = "bar"
|
||||||
_BAZ = "qux"
|
_BAZ = "qux"
|
||||||
}
|
}
|
||||||
|
@ -427,10 +427,10 @@ resource "google_cloudfunctions_function" "function" {
|
|||||||
trigger_http = true
|
trigger_http = true
|
||||||
timeout = 61
|
timeout = 61
|
||||||
entry_point = "helloGET"
|
entry_point = "helloGET"
|
||||||
labels {
|
labels = {
|
||||||
my-label = "my-label-value"
|
my-label = "my-label-value"
|
||||||
}
|
}
|
||||||
environment_variables {
|
environment_variables = {
|
||||||
TEST_ENV_VARIABLE = "test-env-variable-value"
|
TEST_ENV_VARIABLE = "test-env-variable-value"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -459,11 +459,11 @@ resource "google_cloudfunctions_function" "function" {
|
|||||||
runtime = "nodejs8"
|
runtime = "nodejs8"
|
||||||
timeout = 91
|
timeout = 91
|
||||||
entry_point = "helloGET"
|
entry_point = "helloGET"
|
||||||
labels {
|
labels = {
|
||||||
my-label = "my-updated-label-value"
|
my-label = "my-updated-label-value"
|
||||||
a-new-label = "a-new-label-value"
|
a-new-label = "a-new-label-value"
|
||||||
}
|
}
|
||||||
environment_variables {
|
environment_variables = {
|
||||||
TEST_ENV_VARIABLE = "test-env-variable-value"
|
TEST_ENV_VARIABLE = "test-env-variable-value"
|
||||||
NEW_ENV_VARIABLE = "new-env-variable-value"
|
NEW_ENV_VARIABLE = "new-env-variable-value"
|
||||||
}
|
}
|
||||||
|
@ -244,21 +244,21 @@ resource "google_composer_environment" "test" {
|
|||||||
node_count = 4
|
node_count = 4
|
||||||
|
|
||||||
software_config {
|
software_config {
|
||||||
airflow_config_overrides {
|
airflow_config_overrides = {
|
||||||
core-load_example = "True"
|
core-load_example = "True"
|
||||||
}
|
}
|
||||||
|
|
||||||
pypi_packages {
|
pypi_packages = {
|
||||||
numpy = ""
|
numpy = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
env_variables {
|
env_variables = {
|
||||||
FOO = "bar"
|
FOO = "bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
anotherlabel = "boo"
|
anotherlabel = "boo"
|
||||||
}
|
}
|
||||||
@ -315,7 +315,7 @@ resource "google_composer_environment" "test" {
|
|||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
config {
|
config {
|
||||||
software_config {
|
software_config {
|
||||||
pypi_packages {
|
pypi_packages = {
|
||||||
scipy = "==1.1.0"
|
scipy = "==1.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -222,10 +222,6 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ resource "google_compute_disk" "default" {
|
|||||||
type = "pd-ssd"
|
type = "pd-ssd"
|
||||||
zone = "us-central1-a"
|
zone = "us-central1-a"
|
||||||
image = "debian-8-jessie-v20170523"
|
image = "debian-8-jessie-v20170523"
|
||||||
labels {
|
labels = {
|
||||||
environment = "dev"
|
environment = "dev"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -578,7 +578,7 @@ resource "google_compute_disk" "foobar" {
|
|||||||
size = 50
|
size = 50
|
||||||
type = "pd-ssd"
|
type = "pd-ssd"
|
||||||
zone = "us-central1-a"
|
zone = "us-central1-a"
|
||||||
labels {
|
labels = {
|
||||||
my-label = "my-label-value"
|
my-label = "my-label-value"
|
||||||
}
|
}
|
||||||
}`, diskName)
|
}`, diskName)
|
||||||
@ -616,7 +616,7 @@ resource "google_compute_disk" "foobar" {
|
|||||||
size = 100
|
size = 100
|
||||||
type = "pd-ssd"
|
type = "pd-ssd"
|
||||||
zone = "us-central1-a"
|
zone = "us-central1-a"
|
||||||
labels {
|
labels = {
|
||||||
my-label = "my-updated-label-value"
|
my-label = "my-updated-label-value"
|
||||||
a-new-label = "a-new-label-value"
|
a-new-label = "a-new-label-value"
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ resource "google_compute_instance_from_template" "foobar" {
|
|||||||
|
|
||||||
// Overrides
|
// Overrides
|
||||||
can_ip_forward = false
|
can_ip_forward = false
|
||||||
labels {
|
labels = {
|
||||||
my_key = "my_value"
|
my_key = "my_value"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -245,7 +245,7 @@ resource "google_compute_instance_template" "template" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -228,10 +228,6 @@ func testAccInstanceGroupManager_basic(template, target, igm1, igm2 string) stri
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -287,10 +283,6 @@ func testAccInstanceGroupManager_targetSizeZero(template, igm string) string {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -329,10 +321,6 @@ func testAccInstanceGroupManager_update(template, target, igm string) string {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -383,10 +371,6 @@ func testAccInstanceGroupManager_update2(template1, target1, target2, template2,
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -420,10 +404,6 @@ func testAccInstanceGroupManager_update2(template1, target1, target2, template2,
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -564,10 +544,6 @@ func testAccInstanceGroupManager_separateRegions(igm1, igm2 string) string {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
|
@ -795,7 +795,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
automatic_restart = true
|
automatic_restart = true
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -803,7 +803,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
my_label = "foobar"
|
my_label = "foobar"
|
||||||
}
|
}
|
||||||
}`, acctest.RandString(10))
|
}`, acctest.RandString(10))
|
||||||
@ -848,7 +848,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
automatic_restart = true
|
automatic_restart = true
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -856,7 +856,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
my_label = "foobar"
|
my_label = "foobar"
|
||||||
}
|
}
|
||||||
}`, acctest.RandString(10), acctest.RandString(10))
|
}`, acctest.RandString(10), acctest.RandString(10))
|
||||||
@ -890,7 +890,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
automatic_restart = false
|
automatic_restart = false
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -927,7 +927,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}`, acctest.RandString(10), acctest.RandString(10))
|
}`, acctest.RandString(10), acctest.RandString(10))
|
||||||
@ -978,7 +978,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network_ip = "%s"
|
network_ip = "%s"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}`, acctest.RandString(10), networkIP)
|
}`, acctest.RandString(10), networkIP)
|
||||||
@ -1005,7 +1005,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network_ip = "%s"
|
network_ip = "%s"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}`, acctest.RandString(10), ipAddress)
|
}`, acctest.RandString(10), ipAddress)
|
||||||
@ -1047,7 +1047,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}`, acctest.RandString(10), acctest.RandString(10))
|
}`, acctest.RandString(10), acctest.RandString(10))
|
||||||
@ -1089,7 +1089,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}`, acctest.RandString(10), acctest.RandString(10))
|
}`, acctest.RandString(10), acctest.RandString(10))
|
||||||
@ -1122,7 +1122,7 @@ func testAccComputeInstanceTemplate_subnet_auto(network string) string {
|
|||||||
network = "${google_compute_network.auto-network.name}"
|
network = "${google_compute_network.auto-network.name}"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}`, network, acctest.RandString(10))
|
}`, network, acctest.RandString(10))
|
||||||
@ -1163,7 +1163,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
subnetwork = "${google_compute_subnetwork.subnetwork.name}"
|
subnetwork = "${google_compute_subnetwork.subnetwork.name}"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}`, acctest.RandString(10), acctest.RandString(10), acctest.RandString(10))
|
}`, acctest.RandString(10), acctest.RandString(10), acctest.RandString(10))
|
||||||
@ -1240,7 +1240,7 @@ func testAccComputeInstanceTemplate_subnet_xpn(org, billingId, projectName strin
|
|||||||
subnetwork_project = "${google_compute_subnetwork.subnetwork.project}"
|
subnetwork_project = "${google_compute_subnetwork.subnetwork.project}"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
project = "${google_compute_shared_vpc_service_project.service_project.service_project}"
|
project = "${google_compute_shared_vpc_service_project.service_project.service_project}"
|
||||||
@ -1265,7 +1265,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
boot = true
|
boot = true
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1295,7 +1295,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
boot = true
|
boot = true
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1338,7 +1338,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
boot = true
|
boot = true
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1501,7 +1501,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
my_label = "foobar"
|
my_label = "foobar"
|
||||||
}
|
}
|
||||||
}`, pid, pname, org, billing, keyRingName, keyName, acctest.RandString(10))
|
}`, pid, pname, org, billing, keyRingName, keyName, acctest.RandString(10))
|
||||||
|
@ -1539,16 +1539,13 @@ resource "google_compute_instance" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
baz = "qux"
|
baz = "qux"
|
||||||
}
|
|
||||||
|
|
||||||
metadata {
|
|
||||||
startup-script = "echo Hello"
|
startup-script = "echo Hello"
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
my_key = "my_value"
|
my_key = "my_value"
|
||||||
my_other_key = "my_other_value"
|
my_other_key = "my_other_value"
|
||||||
}
|
}
|
||||||
@ -1580,7 +1577,7 @@ resource "google_compute_instance" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1611,7 +1608,7 @@ resource "google_compute_instance" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1643,7 +1640,7 @@ resource "google_compute_instance" "foobar" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1674,7 +1671,7 @@ resource "google_compute_instance" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1763,7 +1760,7 @@ resource "google_compute_instance" "foobar" {
|
|||||||
access_config { }
|
access_config { }
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
qux = "true"
|
qux = "true"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1796,12 +1793,12 @@ resource "google_compute_instance" "foobar" {
|
|||||||
access_config { }
|
access_config { }
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
bar = "baz"
|
bar = "baz"
|
||||||
startup-script = "echo Hello"
|
startup-script = "echo Hello"
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
only_me = "nothing_else"
|
only_me = "nothing_else"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1838,7 +1835,7 @@ resource "google_compute_instance" "foobar" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1871,7 +1868,7 @@ resource "google_compute_instance" "foobar" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1992,7 +1989,7 @@ resource "google_compute_instance" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2681,7 +2678,7 @@ resource "google_compute_instance" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -135,7 +135,7 @@ resource "google_project_service" "compute" {
|
|||||||
|
|
||||||
resource "google_compute_project_metadata" "fizzbuzz" {
|
resource "google_compute_project_metadata" "fizzbuzz" {
|
||||||
project = "${google_project.project.project_id}"
|
project = "${google_project.project.project_id}"
|
||||||
metadata {
|
metadata = {
|
||||||
banana = "orange"
|
banana = "orange"
|
||||||
sofa = "darwinism"
|
sofa = "darwinism"
|
||||||
}
|
}
|
||||||
@ -159,7 +159,7 @@ resource "google_project_service" "compute" {
|
|||||||
|
|
||||||
resource "google_compute_project_metadata" "fizzbuzz" {
|
resource "google_compute_project_metadata" "fizzbuzz" {
|
||||||
project = "${google_project.project.project_id}"
|
project = "${google_project.project.project_id}"
|
||||||
metadata {
|
metadata = {
|
||||||
kiwi = "papaya"
|
kiwi = "papaya"
|
||||||
finches = "darwinism"
|
finches = "darwinism"
|
||||||
}
|
}
|
||||||
@ -183,7 +183,7 @@ resource "google_project_service" "compute" {
|
|||||||
|
|
||||||
resource "google_compute_project_metadata" "fizzbuzz" {
|
resource "google_compute_project_metadata" "fizzbuzz" {
|
||||||
project = "${google_project.project.project_id}"
|
project = "${google_project.project.project_id}"
|
||||||
metadata {
|
metadata = {
|
||||||
paper = "pen"
|
paper = "pen"
|
||||||
genghis_khan = "french bread"
|
genghis_khan = "french bread"
|
||||||
happy = "smiling"
|
happy = "smiling"
|
||||||
@ -208,7 +208,7 @@ resource "google_project_service" "compute" {
|
|||||||
|
|
||||||
resource "google_compute_project_metadata" "fizzbuzz" {
|
resource "google_compute_project_metadata" "fizzbuzz" {
|
||||||
project = "${google_project.project.project_id}"
|
project = "${google_project.project.project_id}"
|
||||||
metadata {
|
metadata = {
|
||||||
paper = "pen"
|
paper = "pen"
|
||||||
paris = "french bread"
|
paris = "french bread"
|
||||||
happy = "laughing"
|
happy = "laughing"
|
||||||
|
@ -76,7 +76,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,10 +154,6 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -219,10 +215,6 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
|
@ -327,7 +327,7 @@ resource "google_compute_region_disk" "regiondisk" {
|
|||||||
replica_zones = ["us-central1-a", "us-central1-f"]
|
replica_zones = ["us-central1-a", "us-central1-f"]
|
||||||
|
|
||||||
size = 100
|
size = 100
|
||||||
labels {
|
labels = {
|
||||||
my-label = "my-updated-label-value"
|
my-label = "my-updated-label-value"
|
||||||
a-new-label = "a-new-label-value"
|
a-new-label = "a-new-label-value"
|
||||||
}
|
}
|
||||||
|
@ -253,10 +253,6 @@ func testAccRegionInstanceGroupManager_basic(template, target, igm1, igm2 string
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -312,10 +308,6 @@ func testAccRegionInstanceGroupManager_targetSizeZero(template, igm string) stri
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -354,10 +346,6 @@ func testAccRegionInstanceGroupManager_update(template, target, igm string) stri
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -408,10 +396,6 @@ func testAccRegionInstanceGroupManager_update2(template1, target1, target2, temp
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -445,10 +429,6 @@ func testAccRegionInstanceGroupManager_update2(template1, target1, target2, temp
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -543,10 +523,6 @@ func testAccRegionInstanceGroupManager_separateRegions(igm1, igm2 string) string
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
service_account {
|
service_account {
|
||||||
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
|
||||||
}
|
}
|
||||||
@ -592,9 +568,6 @@ resource "google_compute_instance_template" "igm-basic" {
|
|||||||
network_interface {
|
network_interface {
|
||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
metadata {
|
|
||||||
foo = "bar"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_compute_region_instance_group_manager" "igm-basic" {
|
resource "google_compute_region_instance_group_manager" "igm-basic" {
|
||||||
|
@ -1631,10 +1631,10 @@ resource "google_container_cluster" "with_node_config" {
|
|||||||
"https://www.googleapis.com/auth/logging.write"
|
"https://www.googleapis.com/auth/logging.write"
|
||||||
]
|
]
|
||||||
service_account = "default"
|
service_account = "default"
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
labels {
|
labels = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
tags = ["foo", "bar"]
|
tags = ["foo", "bar"]
|
||||||
@ -1666,10 +1666,10 @@ resource "google_container_cluster" "with_node_config" {
|
|||||||
"https://www.googleapis.com/auth/logging.write"
|
"https://www.googleapis.com/auth/logging.write"
|
||||||
]
|
]
|
||||||
service_account = "default"
|
service_account = "default"
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
labels {
|
labels = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
tags = ["foo", "bar"]
|
tags = ["foo", "bar"]
|
||||||
@ -1929,11 +1929,11 @@ resource "google_container_cluster" "with_node_pool_node_config" {
|
|||||||
"https://www.googleapis.com/auth/monitoring"
|
"https://www.googleapis.com/auth/monitoring"
|
||||||
]
|
]
|
||||||
service_account = "default"
|
service_account = "default"
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
image_type = "COS"
|
image_type = "COS"
|
||||||
labels {
|
labels = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
tags = ["foo", "bar"]
|
tags = ["foo", "bar"]
|
||||||
@ -2134,7 +2134,7 @@ resource "google_container_cluster" "with_resource_labels" {
|
|||||||
zone = "us-central1-a"
|
zone = "us-central1-a"
|
||||||
initial_node_count = 1
|
initial_node_count = 1
|
||||||
|
|
||||||
resource_labels {
|
resource_labels = {
|
||||||
created-by = "terraform"
|
created-by = "terraform"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,7 @@ resource "google_dataflow_job" "big_data" {
|
|||||||
template_gcs_path = "gs://dataflow-templates/wordcount/template_file"
|
template_gcs_path = "gs://dataflow-templates/wordcount/template_file"
|
||||||
temp_gcs_location = "${google_storage_bucket.temp.url}"
|
temp_gcs_location = "${google_storage_bucket.temp.url}"
|
||||||
|
|
||||||
parameters {
|
parameters = {
|
||||||
inputFile = "gs://dataflow-samples/shakespeare/kinglear.txt"
|
inputFile = "gs://dataflow-samples/shakespeare/kinglear.txt"
|
||||||
output = "${google_storage_bucket.temp.url}/output"
|
output = "${google_storage_bucket.temp.url}/output"
|
||||||
}
|
}
|
||||||
@ -161,7 +161,7 @@ resource "google_dataflow_job" "big_data" {
|
|||||||
template_gcs_path = "gs://dataflow-templates/wordcount/template_file"
|
template_gcs_path = "gs://dataflow-templates/wordcount/template_file"
|
||||||
temp_gcs_location = "${google_storage_bucket.temp.url}"
|
temp_gcs_location = "${google_storage_bucket.temp.url}"
|
||||||
|
|
||||||
parameters {
|
parameters = {
|
||||||
inputFile = "gs://dataflow-samples/shakespeare/kinglear.txt"
|
inputFile = "gs://dataflow-samples/shakespeare/kinglear.txt"
|
||||||
output = "${google_storage_bucket.temp.url}/output"
|
output = "${google_storage_bucket.temp.url}/output"
|
||||||
}
|
}
|
||||||
|
@ -796,7 +796,7 @@ resource "google_dataproc_cluster" "basic" {
|
|||||||
|
|
||||||
cluster_config {
|
cluster_config {
|
||||||
gce_cluster_config {
|
gce_cluster_config {
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
baz = "qux"
|
baz = "qux"
|
||||||
}
|
}
|
||||||
@ -989,7 +989,7 @@ resource "google_dataproc_cluster" "with_labels" {
|
|||||||
name = "dproc-cluster-test-%s"
|
name = "dproc-cluster-test-%s"
|
||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
key1 = "value1"
|
key1 = "value1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -549,7 +549,7 @@ resource "google_dataproc_job" "pyspark" {
|
|||||||
"spark.logConf" = "true"
|
"spark.logConf" = "true"
|
||||||
}
|
}
|
||||||
logging_config {
|
logging_config {
|
||||||
driver_log_levels {
|
driver_log_levels = {
|
||||||
"root" = "INFO"
|
"root" = "INFO"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -559,7 +559,7 @@ resource "google_dataproc_job" "pyspark" {
|
|||||||
max_failures_per_hour = 1
|
max_failures_per_hour = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
one = "1"
|
one = "1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -327,7 +327,7 @@ resource "google_project" "acceptance" {
|
|||||||
project_id = "%s"
|
project_id = "%s"
|
||||||
name = "%s"
|
name = "%s"
|
||||||
org_id = "%s"
|
org_id = "%s"
|
||||||
labels {`, pid, name, org)
|
labels = {`, pid, name, org)
|
||||||
|
|
||||||
l := ""
|
l := ""
|
||||||
for key, value := range labels {
|
for key, value := range labels {
|
||||||
|
@ -91,7 +91,7 @@ resource "google_redis_instance" "cache" {
|
|||||||
display_name = "Terraform Test Instance"
|
display_name = "Terraform Test Instance"
|
||||||
reserved_ip_range = "192.168.0.0/29"
|
reserved_ip_range = "192.168.0.0/29"
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
my_key = "my_val"
|
my_key = "my_val"
|
||||||
other_key = "other_val"
|
other_key = "other_val"
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ resource "google_redis_instance" "test" {
|
|||||||
memory_size_gb = 1
|
memory_size_gb = 1
|
||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
my_key = "my_val"
|
my_key = "my_val"
|
||||||
other_key = "other_val"
|
other_key = "other_val"
|
||||||
}
|
}
|
||||||
@ -119,7 +119,7 @@ resource "google_redis_instance" "test" {
|
|||||||
display_name = "post-update"
|
display_name = "post-update"
|
||||||
memory_size_gb = 1
|
memory_size_gb = 1
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
my_key = "my_val"
|
my_key = "my_val"
|
||||||
other_key = "new_val"
|
other_key = "new_val"
|
||||||
}
|
}
|
||||||
@ -152,7 +152,7 @@ resource "google_redis_instance" "test" {
|
|||||||
display_name = "Terraform Test Instance"
|
display_name = "Terraform Test Instance"
|
||||||
reserved_ip_range = "192.168.0.0/29"
|
reserved_ip_range = "192.168.0.0/29"
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
my_key = "my_val"
|
my_key = "my_val"
|
||||||
other_key = "other_val"
|
other_key = "other_val"
|
||||||
}
|
}
|
||||||
|
@ -292,7 +292,7 @@ resource "google_spanner_instance" "updater" {
|
|||||||
display_name = "%s"
|
display_name = "%s"
|
||||||
num_nodes = %d
|
num_nodes = %d
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
"key1" = "value1"
|
"key1" = "value1"
|
||||||
%s
|
%s
|
||||||
}
|
}
|
||||||
|
@ -945,7 +945,7 @@ resource "google_sql_database_instance" "instance" {
|
|||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
settings {
|
settings {
|
||||||
tier = "db-f1-micro"
|
tier = "db-f1-micro"
|
||||||
user_labels {
|
user_labels = {
|
||||||
track = "production"
|
track = "production"
|
||||||
location = "western-division"
|
location = "western-division"
|
||||||
}
|
}
|
||||||
@ -958,7 +958,7 @@ resource "google_sql_database_instance" "instance" {
|
|||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
settings {
|
settings {
|
||||||
tier = "db-f1-micro"
|
tier = "db-f1-micro"
|
||||||
user_labels {
|
user_labels = {
|
||||||
track = "production"
|
track = "production"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -991,7 +991,7 @@ func testAccStorageBucket_labels(bucketName string) string {
|
|||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
resource "google_storage_bucket" "bucket" {
|
resource "google_storage_bucket" "bucket" {
|
||||||
name = "%s"
|
name = "%s"
|
||||||
labels {
|
labels = {
|
||||||
my-label = "my-label-value"
|
my-label = "my-label-value"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1040,7 +1040,7 @@ func testAccStorageBucket_updateLabels(bucketName string) string {
|
|||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
resource "google_storage_bucket" "bucket" {
|
resource "google_storage_bucket" "bucket" {
|
||||||
name = "%s"
|
name = "%s"
|
||||||
labels {
|
labels = {
|
||||||
my-label = "my-updated-label-value"
|
my-label = "my-updated-label-value"
|
||||||
a-new-label = "a-new-label-value"
|
a-new-label = "a-new-label-value"
|
||||||
}
|
}
|
||||||
|
@ -242,7 +242,7 @@ resource "google_storage_notification" "notification" {
|
|||||||
payload_format = "JSON_API_V1"
|
payload_format = "JSON_API_V1"
|
||||||
topic = "${google_pubsub_topic.topic.id}"
|
topic = "${google_pubsub_topic.topic.id}"
|
||||||
event_types = ["%s","%s"]
|
event_types = ["%s","%s"]
|
||||||
custom_attributes {
|
custom_attributes = {
|
||||||
new-attribute = "new-attribute-value"
|
new-attribute = "new-attribute-value"
|
||||||
}
|
}
|
||||||
depends_on = ["google_pubsub_topic_iam_binding.binding"]
|
depends_on = ["google_pubsub_topic_iam_binding.binding"]
|
||||||
|
@ -30,7 +30,7 @@ resource "google_service_account_key" "mykey" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "kubernetes_secret" "google-application-credentials" {
|
resource "kubernetes_secret" "google-application-credentials" {
|
||||||
metadata {
|
metadata = {
|
||||||
name = "google-application-credentials"
|
name = "google-application-credentials"
|
||||||
}
|
}
|
||||||
data {
|
data {
|
||||||
|
@ -46,7 +46,7 @@ data "google_storage_object_signed_url" "get_url" {
|
|||||||
duration = "2d"
|
duration = "2d"
|
||||||
credentials = "${file("path/to/credentials.json")}"
|
credentials = "${file("path/to/credentials.json")}"
|
||||||
|
|
||||||
extension_headers {
|
extension_headers = {
|
||||||
x-goog-if-generation-match = 1
|
x-goog-if-generation-match = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ resource "google_bigquery_dataset" "default" {
|
|||||||
location = "EU"
|
location = "EU"
|
||||||
default_table_expiration_ms = 3600000
|
default_table_expiration_ms = 3600000
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
env = "default"
|
env = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ resource "google_bigquery_dataset" "default" {
|
|||||||
location = "EU"
|
location = "EU"
|
||||||
default_table_expiration_ms = 3600000
|
default_table_expiration_ms = 3600000
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
env = "default"
|
env = "default"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -36,7 +36,7 @@ resource "google_bigquery_table" "default" {
|
|||||||
type = "DAY"
|
type = "DAY"
|
||||||
}
|
}
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
env = "default"
|
env = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,10 +35,11 @@ resource "google_cloudfunctions_function" "function" {
|
|||||||
trigger_http = true
|
trigger_http = true
|
||||||
timeout = 60
|
timeout = 60
|
||||||
entry_point = "helloGET"
|
entry_point = "helloGET"
|
||||||
labels {
|
labels = {
|
||||||
my-label = "my-label-value"
|
my-label = "my-label-value"
|
||||||
}
|
}
|
||||||
environment_variables {
|
|
||||||
|
environment_variables = {
|
||||||
MY_ENV_VAR = "my-env-var-value"
|
MY_ENV_VAR = "my-env-var-value"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,16 +99,16 @@ resource "google_composer_environment" "test" {
|
|||||||
|
|
||||||
config {
|
config {
|
||||||
software_config {
|
software_config {
|
||||||
airflow_config_overrides {
|
airflow_config_overrides = {
|
||||||
core-load_example = "True"
|
core-load_example = "True"
|
||||||
}
|
}
|
||||||
|
|
||||||
pypi_packages {
|
pypi_packages = {
|
||||||
numpy = ""
|
numpy = ""
|
||||||
scipy = "==1.1.0"
|
scipy = "==1.1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
env_variables {
|
env_variables = {
|
||||||
FOO = "bar"
|
FOO = "bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ resource "google_compute_disk" "default" {
|
|||||||
type = "pd-ssd"
|
type = "pd-ssd"
|
||||||
zone = "us-central1-a"
|
zone = "us-central1-a"
|
||||||
image = "debian-8-jessie-v20170523"
|
image = "debian-8-jessie-v20170523"
|
||||||
labels {
|
labels = {
|
||||||
environment = "dev"
|
environment = "dev"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ resource "google_compute_instance" "default" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ resource "google_compute_instance_template" "tpl" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ resource "google_compute_instance_from_template" "tpl" {
|
|||||||
|
|
||||||
// Override fields from instance template
|
// Override fields from instance template
|
||||||
can_ip_forward = false
|
can_ip_forward = false
|
||||||
labels {
|
labels = {
|
||||||
my_key = "my_value"
|
my_key = "my_value"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ resource "google_compute_instance_template" "default" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ key/value pairs within the project metadata rather than the entire set, then use
|
|||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
resource "google_compute_project_metadata" "default" {
|
resource "google_compute_project_metadata" "default" {
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
fizz = "buzz"
|
fizz = "buzz"
|
||||||
"13" = "42"
|
"13" = "42"
|
||||||
|
@ -74,7 +74,7 @@ resource "google_compute_instance_template" "foobar" {
|
|||||||
network = "default"
|
network = "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata {
|
metadata = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ resource "google_container_cluster" "primary" {
|
|||||||
"https://www.googleapis.com/auth/monitoring",
|
"https://www.googleapis.com/auth/monitoring",
|
||||||
]
|
]
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ resource "google_dataflow_job" "big_data_job" {
|
|||||||
name = "dataflow-job"
|
name = "dataflow-job"
|
||||||
template_gcs_path = "gs://my-bucket/templates/template_file"
|
template_gcs_path = "gs://my-bucket/templates/template_file"
|
||||||
temp_gcs_location = "gs://my-bucket/tmp_dir"
|
temp_gcs_location = "gs://my-bucket/tmp_dir"
|
||||||
parameters {
|
parameters = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
baz = "qux"
|
baz = "qux"
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ resource "google_dataproc_cluster" "simplecluster" {
|
|||||||
resource "google_dataproc_cluster" "mycluster" {
|
resource "google_dataproc_cluster" "mycluster" {
|
||||||
name = "mycluster"
|
name = "mycluster"
|
||||||
region = "us-central1"
|
region = "us-central1"
|
||||||
labels {
|
labels = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ resource "google_dataproc_job" "spark" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
logging_config {
|
logging_config {
|
||||||
driver_log_levels {
|
driver_log_levels = {
|
||||||
"root" = "INFO"
|
"root" = "INFO"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -166,7 +166,7 @@ resource "google_dataproc_job" "spark" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
logging_config {
|
logging_config {
|
||||||
driver_log_levels {
|
driver_log_levels = {
|
||||||
"root" = "INFO"
|
"root" = "INFO"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ resource "google_service_account_key" "mykey" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "kubernetes_secret" "google-application-credentials" {
|
resource "kubernetes_secret" "google-application-credentials" {
|
||||||
metadata {
|
metadata = {
|
||||||
name = "google-application-credentials"
|
name = "google-application-credentials"
|
||||||
}
|
}
|
||||||
data {
|
data {
|
||||||
|
@ -29,7 +29,7 @@ resource "google_pubsub_subscription" "default" {
|
|||||||
push_config {
|
push_config {
|
||||||
push_endpoint = "https://example.com/push"
|
push_endpoint = "https://example.com/push"
|
||||||
|
|
||||||
attributes {
|
attributes = {
|
||||||
x-goog-version = "v1"
|
x-goog-version = "v1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ resource "google_redis_instance" "cache" {
|
|||||||
display_name = "Terraform Test Instance"
|
display_name = "Terraform Test Instance"
|
||||||
reserved_ip_range = "192.168.0.0/29"
|
reserved_ip_range = "192.168.0.0/29"
|
||||||
|
|
||||||
labels {
|
labels = {
|
||||||
my_key = "my_val"
|
my_key = "my_val"
|
||||||
other_key = "other_val"
|
other_key = "other_val"
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ resource "google_storage_notification" "notification" {
|
|||||||
payload_format = "JSON_API_V1"
|
payload_format = "JSON_API_V1"
|
||||||
topic = "${google_pubsub_topic.topic.id}"
|
topic = "${google_pubsub_topic.topic.id}"
|
||||||
event_types = ["OBJECT_FINALIZE", "OBJECT_METADATA_UPDATE"]
|
event_types = ["OBJECT_FINALIZE", "OBJECT_METADATA_UPDATE"]
|
||||||
custom_attributes {
|
custom_attributes = {
|
||||||
new-attribute = "new-attribute-value"
|
new-attribute = "new-attribute-value"
|
||||||
}
|
}
|
||||||
depends_on = ["google_pubsub_topic_iam_binding.binding"]
|
depends_on = ["google_pubsub_topic_iam_binding.binding"]
|
||||||
|
Loading…
Reference in New Issue
Block a user