Commit Graph

1003 Commits

Author SHA1 Message Date
The Magician
672ae729fa Update provider docs for 2.0.0 (#2360)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
d292de6f0c Remove files that aren't managed by magic-modules or explicitly excluded. (#2368) 2018-12-20 17:22:22 -08:00
The Magician
6707290efe Make google_project_iam_policy authoritative. (#2315)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
30fc9ec3f9 Generate DefaultObjectAccessControl in Terraform (#2358)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
ba0bed37e2 Increase redis timeouts (#2351)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
Chris Stephens
ae09a200c7 deprecate address as originally intended 2018-12-20 17:22:22 -08:00
The Magician
bf296e55bf Make google_storage_default_object_acl authoritative. (#2345)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
18084be345 Make google_storage_object_acl authoritative (#2316)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Chris Stephens
9be729fb78 support KMS encryption for instance templates 2018-12-20 17:22:22 -08:00
The Magician
29368a64d1 Add support for google_cloudfunctions_function runtime (#2340)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Riley Karson
3cb1357d95 [Website] Add support for Google Cloud Bigtable replication. (#2289) 2018-12-20 17:22:22 -08:00
Chris Stephens
84434410ca Adding ipv4 range back (#2303)
This change would force people to upgrade from legacy networks which are still
technically supported in GCP.

Since website hasn't moved to magic modules yet this is to accompany https://github.com/GoogleCloudPlatform/magic-modules/pull/599
2018-12-20 17:22:22 -08:00
Romain Vrignaud
b7af6b35d1 Fix composer website (#2299) 2018-12-20 17:22:22 -08:00
The Magician
aab0f61a5d OiCS changes due to generating the beta provider (#2294)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
Dana Hoffman
08ff5dc350 use correct cloud console link (#2293) 2018-12-20 17:22:22 -08:00
The Magician
aa0c53245e Add Open in Cloud Shell links to docs (#2269)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
4c20b7eeac Add support for google_storage_object_access_control (#2256) 2018-12-20 17:22:22 -08:00
Riley Karson
b76bc0331b Docs: Make "All Providers" a backwards arrow (#2266) 2018-12-20 17:22:22 -08:00
The Magician
c98140f0db Autogenerate google_compute_url_map (#2245)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Chris Stephens
b8de3fd850 Deprecate network fields (#2235)
* removing old removed network fields

* Remove ipv4range option
2018-12-20 17:22:22 -08:00
The Magician
586f1e98c3 stop generating beta resources/fields (#2242)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
Chris Stephens
ba001b386b Remove service account policydata (#2247)
* Removing policy_data from service account

* Remove policy_data tests that aren't needed.
2018-12-20 17:22:22 -08:00
The Magician
ca0921cb05 Support default booleans for Terraform configs (#2222) 2018-12-20 17:22:22 -08:00
Chris Stephens
192684a7f6 Removing create_timeout from compute image (#2244) 2018-12-20 17:22:22 -08:00
Labesse Kévin
293a63e74a adding attribute family for bigtable_table (#2228)
Fix #1576
2018-12-20 17:22:22 -08:00
The Magician
0008f6d840 PR from HEAD of Magic Modules after long-running PR merged in. (#2246) 2018-12-20 17:22:22 -08:00
Chris Stephens
a93c57e76a Don't allow destroying backend buckets in dataproc (#2224)
Removing the delete_autogen_bucket property
Buckets will not be deleted when a dataproc resource is destroyed
2018-12-20 17:22:22 -08:00
The Magician
22ecabd739 Add documentation support to the stackdriver alertPolicy (#2226)
<!-- This change is generated by MagicModules. -->
/cc @chrisst
2018-12-20 17:22:22 -08:00
Riley Karson
a9b6e3f5e1 Make google_compute_project_metadata authoritative. (#2205) 2018-12-20 17:22:22 -08:00
Chris Stephens
50fe1b6c83 Remove address and create_timeout from instance (#2219) 2018-12-20 17:22:22 -08:00
The Magician
eafe197070 Remove deprecated raw_key convenience property (#2209)
Removing disk_encryption_key_sha256 and disk_encryption_key_raw and removing the custom diff logic associated with them.

<!-- This change is generated by MagicModules. -->
/cc @chrisst
2018-12-20 17:22:22 -08:00
The Magician
6cfaa24ef0 labelfingerprint is beta for resources where labels are beta (#2206) 2018-12-20 17:22:22 -08:00
Riley Karson
8c42015451 Make google_compute_instance metadata authoritative. (#2208) 2018-12-20 17:22:22 -08:00
Nathan McKinley
902675c324 Reverting 1.20 and 1.19 cherrypick branches. 2018-12-20 17:22:22 -08:00
Nathan McKinley
93ffe28133
add sql private ip to ga provider (#2665) 2018-12-13 15:45:09 -08:00
The Magician
be5571dae7 Add missing resources and datasources to sidebar. (#2381)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
The Magician
24138aa844 Deprecate convenience fields in google_compute_snapshot (#2572)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
The Magician
a5f1e6002c Container cluster changes ancillary to beta support for autoprovisioning. (#2415) 2018-12-12 17:23:35 -08:00
Riley Karson
b321a6260b Add update_strategy deprecation message to 1.20.0. (#2575)
Part of https://github.com/terraform-providers/terraform-provider-google/issues/2551
2018-12-12 17:23:35 -08:00
The Magician
63c8a1babe Add support for content-based load balancing to google_compute_health_check (#2550)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
Chris Stephens
b16f2a1b5d Merge pull request #2502 from modular-magician/codegen-pr-933
New Resource: Stackdriver uptime check
2018-12-12 17:23:35 -08:00
Manuel Correa
decc9db551 Add support for data source 'google_iam_role' (#2482)
Add `google_iam_role` data source to be able to fetch and query for GCP IAM roles permissions.
2018-12-12 17:23:35 -08:00
The Magician
8256815662 Add billing account IAM (#2413) 2018-12-12 17:23:35 -08:00
The Magician
f0891b3933 Fix page title for SQL SSL Cert (#2487)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
The Magician
befb80a166 Add weird diff to storage bucket docs. (#2470)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
Ben Vickers
fceefe6cd1 Add the sql ssl (client) cert resource (#2290)
* add the sql client cert resource

* correct schema ordering for sql ssl cert resource
2018-12-12 17:23:35 -08:00
The Magician
cc7843f41c add warning about node pools defined in clusters. See TPG #1712. (#2474) 2018-12-12 17:23:35 -08:00
The Magician
8da6d3b181 Update pubsub topic to read after create, same as TPG #2346 (#2469)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-12 17:23:35 -08:00
Chris Stephens
7a4893f83c Merge pull request #2452 from modular-magician/codegen-pr-896
Stackdriver notification channel
2018-12-12 17:23:35 -08:00
Chris Stephens
14ea8d6f06 Merge pull request #2451 from modular-magician/codegen-pr-895
New Resource: Stack Driver Group
2018-12-12 17:23:35 -08:00
Chris Stephens
072370d4c5 Merge pull request #2430 from modular-magician/codegen-pr-882
Fix ci tests
2018-12-12 17:23:35 -08:00
Pavel Skuratovich
4ce933dba6 Magic Modules changes. 2018-12-12 17:23:35 -08:00
Pavel Skuratovich
44d7151843 Magic Modules changes. 2018-12-12 17:23:35 -08:00
The Magician
b90091e926 Add import support to project metadata. (#2423) 2018-12-12 17:23:35 -08:00
The Magician
1ecab9556a Add support for new-style cloud functions triggers. (#2412)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
rolandkool
6f05ee3f72 Fix typo in resource name (#2365) 2018-12-12 17:23:35 -08:00
The Magician
8f6ddefe4f Generate DefaultObjectAccessControl in Terraform (#2358)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
The Magician
175fe793f4 Increase redis timeouts (#2351)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-12 17:23:35 -08:00
Chris Stephens
49d8d6f2f3 support KMS encryption for instance templates 2018-12-12 17:23:35 -08:00
The Magician
abf53cd91a Add support for google_cloudfunctions_function runtime (#2340)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-12 17:23:35 -08:00
Romain Vrignaud
17a9abfb92 Fix composer website (#2299) 2018-12-12 17:23:35 -08:00
Dana Hoffman
fb4e053232 use correct cloud console link (#2293) 2018-12-12 17:23:35 -08:00
The Magician
7e5749ad35 Add support for google_storage_object_access_control (#2256) 2018-12-12 17:23:35 -08:00
Riley Karson
76b97c66fe Docs: Make "All Providers" a backwards arrow (#2266) 2018-12-12 17:23:35 -08:00
Riley Karson
c452e212eb Revert "Fix regional cluster example (#2385)"
This reverts commit 065128eed0.
2018-11-13 07:50:37 -08:00
Dave Koston
065128eed0 Fix regional cluster example (#2385)
Update regional cluster example to point cluster to google_container_cluster.regional.name rather than google_container_cluster.primary.name
2018-11-12 15:24:24 -08:00
Riley Karson
8a62911016
Merge OiCS links into TPG Master (#2433) 2018-11-08 16:30:51 -08:00
Nic West
1fd3d8c2b9
fix a typo 2018-10-23 19:27:52 +01:00
Thomas Poindessous
ddd9e01d98 Create a link to storage_bucket_acl documentation (#2275)
Create a link to storage_bucket_acl ressource documentation page.

It's easier than scrolling and scrolling or copy text and search it on the page.

Thank you !
2018-10-17 14:35:49 -07:00
Paddy
c3276fbda5
Merge pull request #2150 from emilymye/docs
Actually add composer docs to sidebar
2018-10-11 23:30:36 -07:00
Paddy
b36050cb0c
Merge pull request #2200 from smatyas/patch-1
typo fix in google_container_registry_repository.html.markdown
2018-10-11 23:29:11 -07:00
Paddy
cbb6e1a4d3
Merge pull request #2201 from smatyas/patch-2
fix a list rendering issue
2018-10-11 23:28:22 -07:00
Paddy
acb0a16556
Merge pull request #2199 from techgnosis/RouterPeerTypo
Adding the missing word 'peer' to title of Compute Router Peer documentation page
2018-10-10 10:19:40 -07:00
Paddy
1a53cb6b27
Merge pull request #2197 from modular-magician/codegen-pr-538
Fix generated provider_versions links
2018-10-10 10:01:29 -07:00
Mátyás Somfai
d5ea3bf413
fix a list rendering issue
The list item under the "Attribues reference" section is rendered incorrectly.
See the screenshot here: https://prnt.sc/l434b0
2018-10-09 18:33:50 +02:00
Mátyás Somfai
9f74d5f5c7
typo fix 2018-10-09 18:18:14 +02:00
jmusselwhite
c4cf0edd34 Adding the missing word 'peer' 2018-10-09 09:02:16 -07:00
Pavel Skuratovich
c011da1dcb Update index.html.markdown 2018-10-09 08:32:11 -07:00
Sébastien Portebois
0c912f8a10 Fix Provider Versions link target
Fixes [https://github.com/hashicorp/terraform/issues/19028](#19028)
2018-10-09 08:30:34 -07:00
Riley Karson
95c57ac681 Fix generated provider_versions links 2018-10-09 15:26:38 +00:00
Riley Karson
fb8721083f Fix handwritten provider_versions links 2018-10-09 08:21:50 -07:00
Riley Karson
706e6ce168
Remove beta-features header (#2178)
* Remove beta-features header

* add version

* Fix old type s/privat/private/
2018-10-08 11:14:08 -07:00
The Magician
1b88724449 Add example tests for Redis, Filestore, ContainerAnalysis (#2131)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-10-05 15:28:31 -07:00
Paddy
b508dfd1cd
Merge pull request #2177 from terraform-providers/paddy_container_private_docs
Add documentation for private_cluster_config.
2018-10-05 13:35:50 -07:00
Paddy Carver
d7672b4c47 Add documentation for private_cluster_config. 2018-10-05 13:19:06 -07:00
The Magician
fe8b2207fe Add an address example with a VM instance (#2141)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-10-05 13:05:58 -07:00
The Magician
645eab7ced Add new generated tests for examples (#2111) 2018-10-05 12:32:57 -07:00
Dana Hoffman
916640568a use https for link to versions doc 2018-10-04 21:55:53 +00:00
Riley Karson
742b6933a1
Add notes to docs about deprecated beta fields. (#2171)
* Add notes to docs about deprecated beta fields.

* Remove comma
2018-10-04 13:20:35 -07:00
Riley Karson
c36b6bbba0
Fix cloud function datasource (#2168) 2018-10-04 10:11:55 -07:00
The Magician
16ff1363a7 remove min_version from a bunch of fields that are in GA now (#2167)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-10-04 09:51:57 -07:00
Paddy
fab13638ac
Merge pull request #2142 from modular-magician/codegen-pr-518
Add deprecation message for generated beta fields.
2018-10-03 20:03:20 -07:00
Paddy
b3ac3e3ff2
Merge pull request #2160 from danawillow/beta-docs
add doc about the different provider versions
2018-10-03 19:55:50 -07:00
Dana Hoffman
83f9c94079 WIP: Add deprecation message for generated beta fields. 2018-10-04 02:45:53 +00:00
Paddy
0669e0298e
Update provider_versions.html.markdown 2018-10-03 19:34:05 -07:00
Paddy
83f2b4eca2
Update provider_versions.html.markdown 2018-10-03 19:28:20 -07:00
Paddy
8e7347af4e
Merge branch 'master' into paddy_igm_deprecation 2018-10-03 19:08:29 -07:00
Paddy
3294d7e1f4
Merge pull request #2158 from rileykarson/cloud-functions-event-trigger
Add event_trigger to cloud functions
2018-10-03 18:55:53 -07:00
Paddy
d6cf44682a
Merge pull request #2161 from terraform-providers/paddy_bigtable_clusters
Move Bigtable config to cluster block.
2018-10-03 18:09:35 -07:00
Paddy Carver
f743cc057b Only one cluster, max.
Only allow one cluster for bigtable instances. We can expand to 2 for
2.0.0.
2018-10-03 18:01:26 -07:00
Paddy Carver
a814a587c7 Move Bigtable config to cluster block.
Match the bigtable_instance resource to the API structure, deprecating
the inlined config parameters. This is a complicated deprecation,
because we don't want to ForceNew when updating to use the new
undeprecated fields, but we want to ForceNew if they change.

This is achieved using a CustomizeDiff.
2018-10-03 16:37:24 -07:00
Chris Stephens
ba088fa113
Add the moitoring top level resource (#2148)
* Add the moitoring top level resource

* Add stackdriver monitoring to the website
2018-10-03 19:09:24 -04:00
The Magician
1f76d44ec1 Stackdriver monitoring AlertPolicy resource (#2120) 2018-10-03 18:51:49 -04:00
Dana Hoffman
177314036b add doc about the different provider versions 2018-10-03 15:22:59 -07:00
Riley Karson
e5d8575541 Accept all Cloud Storage and Cloud Pub/Sub event types 2018-10-03 12:42:18 -07:00
Riley Karson
11129f13b8 Add event_trigger to cloud functions 2018-10-03 11:15:45 -07:00
Paddy
69589e5465
Merge pull request #2147 from terraform-providers/paddy_new_appengine
Add google_app_engine_application resource.
2018-10-03 01:14:01 -07:00
Paddy Carver
a3bd81460e Deprecate beta fields for (R)IGM.
Update (Regional) Instance Group Managers to deprecate the beta fields
(rolling_update_policy, versions, and auto_healing_policy). Also, rename
RESTART to REPLACE for Instance Group Manager's update_strategy, to be a
bit clearer. This required a DiffSuppress to make sure RESTART and
REPLACE are considered equivalent. In 2.0.0, we should remove RESTART
and drop the DiffSuppressFunc. Sadly, we have no way to do a deprecation
message for RESTART. We'll have to put it in the CHANGELOG. I've already
removed it from the website.
2018-10-02 17:22:42 -07:00
Paddy Carver
691ae9986b Adjust for Dana's comments. 2018-10-02 16:34:34 -07:00
Riley Karson
a4a453dc1b
Deprecate assigned_nat_ip in compute_instance family (#2155)
Part of #2143
2018-10-02 16:07:28 -07:00
Paddy Carver
3ab8e95ef6 Pretend to delete, no error. 2018-10-02 14:15:31 -07:00
Emily Ye
6c7f7aa907 actually add composer docs to sidebar 2018-10-02 12:15:14 -07:00
Paddy Carver
9ceb644460 Add google_app_engine_application resource.
Deprecate the app_engine sub-block of google_project, and create a
google_app_engine_application resource instead. Also, add some tests for
its behaviour, as well as some documentation for it.

Note that this is largely an implementation of the ideas discussed in
 #2118, except we're not using CustomizeDiff to reject deletions without
our special flag set, because CustomizeDiff apparently doesn't run on
Delete. Who knew? This leaves us rejecting the deletion at apply time,
which is less than ideal, but the only other option I see is to silently
not delete the resource, and that's... not ideal, either.

This also stops the app_engine sub-block on google_project from forcing
new when it's removed, and sets it to computed, so users can safely move
from using the sub-block to using the resource without state surgery or
deleting their entire project. This does mean it's impossible to delete
an App Engine application from a sub-block now, but seeing as that was
the same situation before, and we just papered over it by making the
project recreate itself in that situation, and people Were Not Fans of
that, I'm considering that an acceptable casualty.
2018-10-02 02:59:17 -07:00
Dana Hoffman
250cfa351c
fix instance template interaction with regional disks, make docs more clear about valid values (#2138) 2018-10-01 11:07:56 -07:00
Alex Barron
70faf686b5 Add "enable_tpu" flag to google_container_cluster (#1974)
* add enable_tpu flag

* missed one

* add docs

* fix test

* tabs

* update tests to new format

* formatting

* formatting
2018-10-01 09:41:54 -07:00
The Magician
063f1ba4b1 Fix docs for BinAuth Policy cluster_admission_rules (#2125)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-28 12:48:46 -07:00
The Magician
61240c3bac Fix TestAccComputeRoute_routeBasicExample (#2124)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-27 10:02:50 -07:00
Riley Karson
41d47ec8bb
Deprecate address in compute_instance family, undeprecate network_ip (#2096)
Also remove a duplicate instance test I noticed for ephemeral ips.
2018-09-26 11:19:25 -07:00
Paddy
33d900537d
Merge pull request #2102 from nownabe/missing-cloudbuild-doc
Update google_cloudbuild_trigger documentation
2018-09-26 11:07:40 -07:00
Paddy
583b8f6192
Merge pull request #2069 from spesnova/spesnova/update-google-iam-policy-doc
Replace "Google Apps domain" with "G Suite domain"
2018-09-25 11:08:30 -07:00
The Magician
d60c05dc30 Magic Modules changes. (#2106) 2018-09-24 15:35:43 -07:00
The Magician
7fb247ee04 Add tests for several compute resource examples, rearrange examples in docs (#2097)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-24 13:54:33 -07:00
nownabe
f64ac057ab
Update google_cloudbuild_trigger documentation
* Order arguments alphabetically
* Add missing argument 'project'
2018-09-24 13:15:38 +09:00
Seigo Uchida
ac88a5fc95 Replace "Google Apps domain" with "G Suite domain"
Google Apps is a former name.

Also, I mention primary domain and domain alias. It seems I have
to use the primary domain. Otherwise, GCP replaces the field to the primary one.
And every time Terraform plan returns a diff about it.

I used domain alias for `members` arg in `google_project_iam_member`
resource. `terraform apply` was succeeded. However, when I run modify
other resources, I got a diff about the `google_project_iam_member`
resource.
2018-09-22 20:51:42 +09:00
The Magician
0790c96cac Implement Filestore Instance. (#2088) 2018-09-21 18:01:22 -07:00
The Magician
06c2f8451f WIP: Add interconnect attachments. (#1569)
Fixes #1140.
2018-09-21 13:27:57 -07:00
Riley Karson
c6ceb36ec7
Introduce a new Google provider landing page, complementary pages. (#2065)
* Introduce a new Google provider landing page, complementary pages.

* Review fixes.

* Link community tutorials, modules.

* Review comments pt 2.

* Review comments 3. Prioritize and tone.

* Review comments 3.1. Then -> Next.

* Paddy review comments.

* Review comments.
2018-09-21 12:49:32 -07:00
The Magician
14bac81a71 Supporting IP range reservation for global address (#2087)
<!-- This change is generated by MagicModules. -->
/cc @chrisst
2018-09-21 09:43:45 -07:00
Paddy
b8cbf46367
Merge pull request #1764 from tpoindessous/patch-1
Be more specific about number of nodes in regional cluster
2018-09-20 14:28:58 -07:00
Paddy
53a8ac330a
Merge pull request #1919 from terraform-providers/paddy_image_docs
Add docs about image families and instance templates.
2018-09-20 14:25:10 -07:00
Paddy
0b8c9644d7
Merge pull request #1944 from colenet-gmbh/master
Importing  google_dns_managed_zone with project
2018-09-20 14:23:36 -07:00
Paddy
d9614d1664
Merge pull request #2054 from migibert/make_runtime_config_importable
Make runtime configs importable
2018-09-20 14:09:16 -07:00
Riley Karson
72b759dbd3
Remove binary_log_enabled from Postgres test, as it's unsupported (#2075)
\+ update docs.

This must have silently failed in the API before? It doesn't work & is tested upstream now. Binary logs are a non-feature of Postgres.
2018-09-20 12:43:55 -07:00
Riley Karson
d656e9139a
Add a datasource for google_compute_instance (#1906)
* Add a compute datasource.

* Add provider changes.

* Add self_link support to google_compute_instance datasource.

* Error check complex d.Set calls.
2018-09-18 09:02:48 -07:00
The Magician
c9f1a9ed01 Add tests based on google_compute_address examples. (#2017)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-17 12:31:57 -07:00
Mikael Gibert
25e1610417 Update documentation 2018-09-14 15:17:10 +02:00
Dana Hoffman
58ca18e2bf
replace dataproc preview version (#2048) 2018-09-13 13:06:33 -07:00
Nathan McKinley
81f8befbb5
Add support for max pods per node to node pool. (#2038) 2018-09-12 17:49:26 -07:00
The Magician
51108005fa Autogenerate google_compute_ssl_certificate. (#2015)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-09-12 15:55:49 -07:00
Chris Stephens
c8acdf8916
Service account email for SQL instances (#2040)
Fixes https://github.com/terraform-providers/terraform-provider-google/issues/632
2018-09-12 15:43:47 -07:00
Dana Hoffman
8ca3c930b8
add warning about imports to sql database instance (#2030)
Fixes #1998.

This just does it for the one resource, but I filed https://github.com/GoogleCloudPlatform/magic-modules/issues/452 to do it for all our generated ones.
2018-09-12 17:37:07 -04:00
emily
017f2f9b54
Add Cloud Composer Environments resource (#2001)
Adds Cloud Composer Environment resource and test sweeper
2018-09-11 13:13:11 -07:00
Chris Stephens
afcbb859ca
Attached disk resource (#1957)
* Adding resource_attached_disk

This is a resource which will allow joining a arbitrary compute disk
to a compute instance. This will enable dynamic numbers of disks to
be associated by using counts.
2018-09-11 13:08:14 -07:00
Chris Stephens
82e19ea060
Merge pull request #2009 from chrisst/is-1803-dns-labels
Add labels functionality to managed DNS
2018-09-11 13:03:56 -07:00
Chris Morgan
55991833f4 #644 Add Support For BigQuery Access Control (#1931)
* Updates based on PR comments

* Fix markdown nested list

* Second round of feedback

* Clarify pick one docs
2018-09-11 12:27:10 -07:00
Harry Pidcock
65669fc6d6 Added Environment Variables configuration to Cloud Functions (#1830) 2018-09-10 17:37:43 -07:00
emily
b1338b4ee7
Allow recreation of recently deleted project and org custom roles (#1681)
* undelete-update recently soft-deleted custom roles

* remove my TODO statements

* check values on soft-delete-recreate for custom role tests

* final fixes to make sure delete works; return read() when updating to 'create'

* check for non-404 errors for custom role get

* add warnings to custom roles docs
2018-09-10 11:36:16 -07:00
Chris Stephens
c74d7d2c60 Add labels functionality to managed DNS 2018-09-07 16:53:40 -07:00
Dana Hoffman
6969ce5b4e
add documentation for dataproc metadata (#2002)
Fixes #1984
2018-09-07 15:27:15 -07:00
Ralf Waldvogel
486f225008 fixed documentation typo 2018-09-07 07:17:40 +02:00
Ralf Waldvogel
c3e5019ddd fixed documentation for import formats 2018-09-07 06:32:13 +02:00
Ralf Waldvogel
90980c1b24 Merge branch 'master' of https://github.com/terraform-providers/terraform-provider-google 2018-09-07 06:26:08 +02:00
Chris Stephens
30773a784d Setting a default update_mask for all log sinks
[According to log sink documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/sinks/update)
the api will eventually throw an error if update mask isn't provided. The
default specified here is what the api is currently using when an empty mask
is passed.
2018-09-06 09:48:48 -07:00
Riley Karson
035a581b9f
Add import support for org, folder, billing logging sinks (#1860)
Fixes #1494.

* Add import support for `google_logging_organization_sink`, `google_logging_folder_sink`, `google_logging_billing_account_sink`.

Using `StateFunc` over `DiffSuppressFunc` should only affect tests; for some reason `TestAccLoggingFolderSink_folderAcceptsFullFolderPath` expected a `folder` value of `folders/{{id}}` vs expecting `{{id}}` when only `DiffSuppressFunc` was used, when in real use `DiffSuppressFunc` should be sufficient.
2018-09-06 08:14:55 -07:00
Thomas Poindessous
0aaa18227a
Be more specific about the number of zones
Changed from review.

The number of zones is three by default.
2018-09-06 14:07:45 +02:00
David Alger
526fb51824 Correct google_compute_ssl_certificate import example (#1970) 2018-09-05 15:34:47 -07:00
Chris Stephens
a291a19c0c
Merge pull request #1990 from chrisst/is-1703-docs
Improving billing logging sink docs
2018-09-05 15:19:11 -07:00
Chris Stephens
70e55920d6 Improving billing logging sink docs 2018-09-05 15:08:42 -07:00
Riley Karson
c8ba3c0b3f
Cleaned up google_project_usage_export_bucket code and docs. (#1922) 2018-09-05 10:31:35 -07:00
Seth Vargo
96cb1fbc16 Encourage users to set lifecycle hooks on kms_crypto_key resources (#1896)
@michaelharo suggested this would be a good best practice for this particular resource to prevent users from accidentally deleting a bunch of encryption keys on a -/+ and losing data, and I agree.

This commit adds a quick documentation blurb saying what actually happens if those crypto key versions are destroyed and also updates the snippet to showcase a lifecycle hook.
2018-09-05 09:59:41 -07:00
Nathan McKinley
9065b5a624 Addition of create_subnetwork and other fields relevant for Alias IPs (#1921)
* Addition of create_subnetwork and use_ip_aliases.

* add fields for [cluster|services]_ipv4_cidr_block and subnetwork_name
2018-09-05 09:52:06 -07:00
Chris Stephens
e6af1c2a7d
Merge pull request #1958 from chrisst/debian-8-docs
updating examples in documentation for debian-9
2018-08-30 12:39:20 -07:00
Chris Stephens
ea6b4ff881 updating examples in documentation for debian-9 2018-08-28 16:58:27 -07:00
emily
27ade47e5a
Fixes for importing sql database instances (#1956)
* fix importing for sql resources

* fmt

* fix id for sql db import, tests

* change test names to be more specific
2018-08-28 16:51:37 -07:00
The Magician
2afafa0573 Magic Modules changes. (#1951) 2018-08-28 16:48:00 -07:00
emily
10ec7b2ca9
Use beta API location for google_container_engine_versions (#1939)
* use beta API location for  data source

* doc fixes

* use getLocation

* add note to docs about required locations
2018-08-28 11:37:07 -07:00
The Magician
f1f0bc97e2 Autogenerate HealthCheck resource (#1941) 2018-08-27 16:35:47 -07:00
Ralf Waldvogel
b66a62078d added documentation for import with project 2018-08-26 10:11:14 +02:00
emily
7e82a982e4
Fix service account key data source name (#1932)
* fix service account key data source name

* switch id to name

* update docs

* doc format

* fixes for validation and tests

* last fixes for service account key data source
2018-08-24 15:29:27 -07:00
Riley Karson
fbad37ebff
Fix storage notification tests (#1913)
* Update google_storage_project_service_account to mirror API.

* Fix storage notifications test, clarify docs.
2018-08-22 08:19:52 -07:00
Paddy Carver
85ed4c4f86 Add docs about image families and instance templates.
Recommend using our data source instead of hardcoding the family into a
template.
2018-08-22 01:43:50 -07:00
The Magician
875f1f874e Generate resource_compute_firewall in magic-modules. I also decided to use PATCH instead of PUT for updates, because a lot of the fields we had marked as ForceNew can be updated with PATCH. (#1907)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-08-21 14:12:46 -07:00
Nathan McKinley
41e088dcef
Update compute_instance.html.markdown (#1912) 2018-08-21 13:47:52 -07:00
Craig Furman
93d0caa9ad Document a default in google_storage_bucket (#1905)
The default of the log_object_prefix is the name of the bucket we are
enabling logging on, not the name of the bucket that receives the logs.
2018-08-20 22:00:36 -07:00
The Magician
3ff7ccca7c Add Policy, Attestor, and Note resources for Binary Authorization (#1885)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-08-20 16:46:13 -07:00
The Magician
fb66cd88c5 Fix documentation for resource manager lien. (#1901) 2018-08-17 16:33:38 -07:00
aidy
5bca1b3f03 Fix length of day in documentation (#1881) 2018-08-17 14:47:47 -07:00
Nathan McKinley
d77c0adbb2
Add support for bucket encryption (#1876)
* Support encryption in Storage bucket.
* Add self links to crypto keys and key ring ids
* Update ID documentation to talk about self link instead.
2018-08-17 14:33:27 -07:00
Dana Hoffman
d1bf585724
Add support for binary authorization in GKE (#1884)
* revendor container/v1beta1

* add support for binauthz in gke

* update description
2018-08-16 17:51:03 -07:00
Riley Karson
8506527a80 Add support for boot_disk_type to google_dataproc_cluster (#1855) 2018-08-15 23:00:11 -07:00
The Magician
d768c67b30 Formatting fixes around dashes in documentation (#1849) 2018-08-15 22:59:44 -07:00
Christoph Blecker
60dc8bccad Add google_project_services data source (#1822) 2018-08-15 15:45:54 -07:00
Scott Jungwirth
ee2e6c4440 Fix typo in google_project_service import docs (#1874) 2018-08-14 17:08:22 -07:00
Simon St John-Green
7558497940 Update google_storage_notification docs to not hardcode service account (#1832)
It's neater to use the google_storage_project_service_account data provider
instead.
2018-08-14 16:51:30 -07:00
Dana Hoffman
27f434ddf1
alphabatize/update sidebar (#1861)
I noticed we were missing the link for `region_disk`, and wanted to make sure we weren't missing any others. The easiest way to check was to alphabetize them, which I think is probably a good idea in general so I kept it. Turns out we were only missing `region_disk`, good job us.
2018-08-13 16:01:19 -07:00
Nathan McKinley
d01c0cd60e
Fixes related to autogenerating the VPN Tunnel resource (#1850) 2018-08-07 17:55:45 -07:00
Dana Hoffman
00e5bd5363
allow updating node image types (#1843)
Fixes #1702.

@chrisst I'm putting you as a reviewer, but no rush. Feel free to ask as many questions as you have! Also feel free to offer suggestions 😃 (or just say it's perfect as-is, that works too)
2018-08-07 14:07:28 -07:00
Nathan McKinley
830ffeb7f3
Strengthen warning in google_project_services. (#1823) 2018-07-27 17:01:38 -07:00
Nathan McKinley
aaf18dacca
CloudBuild Trigger substitutions (#1810) 2018-07-25 13:38:35 -07:00
The Magician
0fdc262183 Add LabelFingerprint and Label to Address and GlobalAddress. (#1811) 2018-07-25 13:25:16 -07:00
oceyral
7da529f3c1 Implement multiple versions for regional instance groups (#1809) 2018-07-25 13:21:20 -07:00
Dana Hoffman
7c47e13aa6
Changes to things that got merged too early (#1790) 2018-07-18 15:47:23 -07:00
Pavel Skuratovich
39497565da Add an example of 'authorized_networks' generation (#1741)
Copy an example from https://github.com/terraform-providers/terraform-provider-google/issues/1644 to the docs
2018-07-18 15:04:50 -07:00
The Magician
c0610c5544 Add google_compute_region_disk resource. (#1755)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-18 14:24:21 -07:00
Thomas Poindessous
ca01beaa21
Update container_cluster.html.markdown 2018-07-13 01:20:09 +02:00
Thomas Poindessous
2ccefc46ec
Update container_cluster.html.markdown
Remove beta for regional cluster. Add an explanation about the total number of nodes
2018-07-13 01:17:03 +02:00
The Magician
499690f3b3 Autogenerate router resource. Also adds update support and a few new fields. (#1723) 2018-07-12 12:51:11 -07:00
Paddy
3d2e72208e
Merge pull request #1717 from Mierdin/master
Implement 'licenses' field in compute_image resource
2018-07-11 21:15:35 -07:00
Paddy
486be87b12
Merge pull request #1731 from nyurik/patch-1
Update compute_ssl_certificate.html.markdown
2018-07-11 04:22:08 -07:00
Dana Hoffman
a6198a0b60
prereqs for regional disks (#1753)
In testing an upcoming `google_compute_region_disk` resource, I had to make these changes. Checking them in separately so that when the magician runs, these changes will already be a part of TF.
2018-07-10 17:10:05 -07:00
The Magician
bbed86dd0b Magic Modules generated documentation cleanup. (#1746) 2018-07-10 15:42:50 -07:00
Yuri Astrakhan
0df88d300e
fix random keepers 2018-07-06 22:48:21 -04:00
The Magician
b2140c98d0 Magic Modules changes. (#1738) 2018-07-06 14:53:00 -07:00
Paddy
6b02e9ccd9
Merge pull request #1734 from terraform-providers/paddy_regional_backend_docs
Clarify regional backend service docs.
2018-07-06 06:30:04 -07:00
Paddy
c05d3e24c9
Merge pull request #1735 from terraform-providers/paddy_1356
Add warning to google_project_iam_binding.
2018-07-06 06:29:49 -07:00
Paddy
2d13fea7a9
Merge pull request #1687 from johnsw87/patch-1
Update to private clusters
2018-07-06 05:51:43 -07:00
Paddy
0eb723ec32
Merge pull request #1665 from vishen/container_cluster_disk_type
container_cluster: added disk_type node configuration
2018-07-06 05:16:12 -07:00
Paddy
c9f047357c
Merge pull request #1732 from alexis-turpin/patch-1
Fix google_compute_route render error
2018-07-06 05:14:59 -07:00
Paddy Carver
9f1bfbb5e8 Add warning to google_project_iam_binding.
Call out that it's possible to lock yourself out using
`google_project_iam_binding`.
2018-07-06 04:40:50 -07:00
Paddy Carver
0a582a198b Clarify regional backend service docs.
Make it clear that regional backend services are only for internal load
balancing, and fix the default for protocol. It's not HTTP, as the API
docs claim, but is TCP instead.
2018-07-06 04:17:37 -07:00
Renzo Toma
90eabdec15 Increase max number of master_authorized_networks to 20, per GKE docs.
See https://cloud.google.com/kubernetes-engine/docs/how-to/authorized-networks#setting_up_an_authorized_network
2018-07-05 22:10:17 +02:00
Alexis Turpin
3d746c7e8d
Fix render error 2018-07-05 17:50:04 +02:00
Yuri Astrakhan
ef10e32120
Update compute_ssl_certificate.html.markdown
It was very confusing for `name_prefix` to be deprecated and undeprecated later.
Adding an example of using random_id in addition to name_prefix
2018-07-04 16:43:23 -04:00
Paddy
cf72a65aa5
Merge pull request #1663 from garethjevans/resourcelabels
Added ability to configure resource labels on a GKE cluster
2018-07-02 11:50:25 -07:00
The Magician
ded4eb8c64 Support Redis configuration (#1706)
<!-- This change is generated by MagicModules. -->
/cc @edevil 

Fixes #1547
2018-07-02 10:16:38 -07:00
The Magician
18e0d423d6 Autogenerate VPN Tunnel resource (#1699) 2018-06-29 16:27:01 -07:00
The Magician
74c64030b8 add quic_override to google_compute_target_https_proxy (#1718) 2018-06-29 15:24:27 -07:00
The Magician
8e6552bd90 Update redis example to actually use network (#1720)
Update redis example to actually use network
2018-06-29 09:28:05 -07:00
Dana Hoffman
7e04cee958
add new compute_instance_from_template resource (#1652)
This was done as its own resource as suggested in slack, since we don't have the option of making all fields Computed in google_compute_instance. There's precedent in the aws provider for this sort of thing (see ami_copy, ami_from_instance).

When I started working on this I assumed I could do it in the compute_instance resource and so I went ahead and reordered the schema to make it easier to work with in the future. Now it's not quite relevant, but I left it in as its own commit that can be looked at separately from the other changes.

Fixes #1582.
2018-06-28 16:09:23 -07:00
Matt Oswalt
8941c5ef6e
Implement 'licenses' field in compute_image resource
Signed-off-by: Matt Oswalt <matt@keepingitclassless.net>
2018-06-28 09:51:50 -07:00
The Magician
5976152ad9 Add generated google_compute_autoscaler and google_compute_region_autoscaler resources. Because this adds the ability to import by more than just the name, we can get rid of all the code in resource_compute_autoscaler.go that tries to find the autoscaler in the provider-specified region. (#1700) 2018-06-27 12:49:34 -07:00
The Magician
788e1efaac Autogenerate google_compute_forwarding_rule. (#1674) 2018-06-25 14:03:48 -07:00
Gareth Evans
bf7c70b392 Minor code changes as requested 2018-06-25 09:55:27 +01:00
johnsw87
02ba99025f
private_cluster update 2018-06-24 09:44:58 +01:00
johnsw87
1b49d8507c
Update to private clusters
Private clusters maintain a public IP address for kubectl to communicate with the master, the workers are internal IP addresses only.
2018-06-21 15:03:45 +01:00
Josh Yelton
81bffe570f Add documentionat for client certificate authorization setting (#1680) 2018-06-19 15:57:25 -07:00
The Magician
57a2e984ca Autogenerate Subnetwork. (#1661) 2018-06-19 13:56:06 -07:00
Misha Brukman
fbfdd47602 Fix Bigtable docs for instance/cluster [skip ci] (#1671)
An instance is an abstract container of clusters, it's the cluster that
has the nodes and holds the data, so the number of nodes and location
apply to the cluster.
2018-06-19 10:34:10 -07:00
Bastien Cadiot
751a3d5c9e Add project variable for GCS service account datasource (#1677) 2018-06-19 10:30:20 -07:00
Jonathan Pentecost
d0890dc2b7 container_cluster: added disk_type node configuration
Added node config 'disk_type' which can either be 'pd-standard' or
'pd-ssd', if left blank 'pd-standard' will be the default used by google
cloud.

Closes: #1656
2018-06-15 21:21:51 +01:00
Gareth Evans
e14aa8bf39 Added ability to configure resource labels on a GKE cluster 2018-06-15 11:10:25 +01:00
The Magician
43cccf3e2c Minor cleanup of disk's labelFingerprint. (#1651) 2018-06-14 20:34:10 -05:00
The Magician
f4e4d880c5 Autogenerate Route resource. (#1647) 2018-06-14 15:22:02 -05:00
Daisuke Fujita
b7f2025fb9 Add project to container_node_pool import name (#1653)
## What

As well as https://github.com/terraform-providers/terraform-provider-google/pull/1282 , make `resource_container_node_pool` importer accept `{project}/{zone}/{cluster}/{name}` format to specify the project where the node pool belongs to actually.

## Why

Sometimes I want to import container pool in different project from default SA's. However, currently there is no way to specify project the target node pool belongs to, Terraform tries to retrieve node pool from SA's project, then it fails due to `You cannot import non-existent resources using Terraform import.` error.
2018-06-14 09:54:08 -07:00
Stefan Schmidt
502e6176a2 Add a link to the official documentation of launch stages. (#1654) 2018-06-14 09:52:26 -07:00
Tom Elliff
e78e593115 Fix connection_name parameter sql_database_instance docs (#1650)
connection_name is a read only parameter that was added in https://github.com/terraform-providers/terraform-provider-google/pull/406.
2018-06-13 13:19:08 -07:00
Dana Hoffman
d424cf05ba
fix iot updatemask and docs (#1640) 2018-06-13 12:37:21 -07:00
The Magician
50f00fa6dc Autogenerate the Address resource. (#1634) 2018-06-11 17:31:33 -07:00
Nathan McKinley
c51ab5f28e
Update storage_bucket.html.markdown (#1641)
Comment in #1089 suggests it might be helpful to document dependency of import on Compute API.
2018-06-11 17:48:06 -03:00
Dana Hoffman
13eba21650
update sql user docs/comments (#1635) 2018-06-11 13:47:01 -07:00
Paddy
8f9d0785f2
Merge pull request #1622 from terraform-providers/paddy_undeprecate_ssl_name_prefix
Undeprecate name_prefix for ssl_certificate.
2018-06-11 13:09:08 -07:00
The Magician
d7d72398b6 zone field in compute disk should be optional (#1631) 2018-06-08 15:20:39 -07:00
Vincent Roseberry
dafa6eb504
Fix documentation on is_live for storage_bucket (#1614) 2018-06-08 09:26:14 -07:00
Paddy
470f27b659 Undeprecate name_prefix for ssl_certificate.
As discussed in #1326, we're not going to remove name_prefix for
compute_ssl_certificate, because it makes the common use case more
ergonomic by a good amount, and the only cost is it's harder to maintain
the autogenerated code, and we've decided the benefits outweigh the
costs in this circumstance.
2018-06-07 18:29:45 -07:00
Sébastien GLON
d766990ce9 Add new google_compute_regions (#1603)
* Add new google_compute_regions

* Add docs

* correct doc
2018-06-07 09:52:12 -07:00
Dana Hoffman
55c2c173df
update auth docs (#1587)
* Added a link to the console page where you can download a file
* Removed instructions on how to get to that page, since now you can just click on the link
* Added caveat for application default credentials

@sethvargo @theacodes @kimcam let me know if this seems reasonable / you have any suggestions!
2018-06-06 10:53:29 -07:00
Vincent Roseberry
01a5dccc3b
Add documentation for network tier (#1593)
* Add documentation for network tier

* Add named links to fwd rule docs

* add documentation for network address

* Fix typo
2018-06-05 13:42:22 -07:00
Daniel Compton
0b647a3562 Warn about ip_version with ip_address in global forwarding rule (#616)
If you try and specify them together you will get this error:

 google_compute_global_forwarding_rule.your-rule: Error creating Global Forwarding Rule: googleapi: Error 400: Invalid value for field 'resource.ipVersion': 'IPV4'. Both IP Version and IP Address cannot be specified., invalid
2018-06-05 13:39:40 -07:00
Jamie Lennox
f8eb752809 Allow using in repo configuration for cloudbuild trigger (#1557)
* Allow using in repo configuration for cloudbuild trigger

Cloudbuild triggers have a complex configuration that can be defined
from the API. When using the console, the more typical way of doing this
is to defined the configuration within the repository and point the
configuration to the file that defines the config.

This can be supported by sending the filename parameter instead of the
build parameter, however only one can be sent.

* Acceptance testing for cloudbuild trigger with filename

Ensure that when a cloudbuild repo trigger is created with a filename,
that filename is what actually ends up in the cloud.

* Don't specify "by default" in cloudbuild-trigger.

The docs shouldn't say that "cloudbuild.yaml" is used by default. There
is no default from the APIs, but the console suggest using this value.
Just say it's the typical value in documentation.
2018-06-05 10:17:20 -07:00
The Magician
164936e4a5 add update support for redis (#1590)
* add update support for redis

* add test for redis update
2018-06-04 17:41:48 -07:00
Tenorio Orta JM
6864f1f9e5 Added GCP Netblock Data Source (#1416) (#1580)
* Added GCP Netblock Data Source (#1416)

* Added docs for google_netblock_ip_ranges (#1416)

* Code review changes (#1416)
2018-06-04 16:31:09 -07:00
Mikaël Gibert
d60381a693 Implement multiple version in instance group manager (#1499)
Hi there,

Here is an attempt to implement canary releases ( #1252 ). This is the first time I write golang and make a terraform contribution, I opened the PR to obtain feedback and advices so please let me know how I can improve this code!

In addition I used `make fmt` to format the code but left some lines bigger than 80 characters, do I need to split them ?

I tested the feature against a project with the following configuration:
```
resource "google_compute_health_check" "mikael-hackathon-healthcheck" {
  name                = "mikael-hackathon-healthcheck"
  check_interval_sec  = 1
  timeout_sec         = 1
  healthy_threshold   = 2
  unhealthy_threshold = 10

  http_health_check {
    request_path = "/"
    port         = "80"
  }
}

resource "google_compute_instance_template" "mikael-hackaton-template" {
  name_prefix = "mikael-hackaton-"
  description = "This template is used to create app server instances."

  tags = ["loadbalanced", "internal-web", "hackaton"]

  labels = {
    environment = "hackaton"
  }

  instance_description = "Hackaton demo rolling upgrade"
  machine_type         = "n1-standard-1"
  can_ip_forward       = false

  scheduling {
    automatic_restart   = true
    on_host_maintenance = "MIGRATE"
  }

  disk {
    source_image = "debian-cloud/debian-9"
    disk_type    = "pd-standard"
    disk_size_gb = 20
    auto_delete  = true
    boot         = true
  }

  network_interface {
    network       = "default"
    access_config = {}
  }

  service_account {
    email  = "${google_service_account.mikael-hackaton.email}"
    scopes = ["cloud-platform"]
  }

  lifecycle {
    create_before_destroy = true
  }

  metadata_startup_script = "apt-get update && apt-get install -y apache2 && echo I am stable version at $(hostname) > /var/www/html/index.html"
}

resource "google_compute_instance_template" "mikael-hackaton-template-canary" {
  name_prefix = "mikael-hackaton-canary"
  description = "This template is used to create app server instances."

  tags = ["loadbalanced", "internal-web", "hackaton"]

  labels = {
    environment = "hackaton"
  }

  instance_description = "Hackaton demo rolling upgrade"
  machine_type         = "n1-standard-1"
  can_ip_forward       = false

  scheduling {
    automatic_restart   = true
    on_host_maintenance = "MIGRATE"
  }

  disk {
    source_image = "debian-cloud/debian-9"
    disk_type    = "pd-standard"
    disk_size_gb = 20
    auto_delete  = true
    boot         = true
  }

  network_interface {
    network       = "default"
    access_config = {}
  }

  service_account {
    email  = "${google_service_account.mikael-hackaton.email}"
    scopes = ["cloud-platform"]
  }

  lifecycle {
    create_before_destroy = true
  }

  metadata_startup_script = "apt-get update && apt-get install -y apache2 && echo I am a canary at $(hostname) > /var/www/html/index.html"
}

resource "google_compute_target_pool" "mikael-hackaton-target-pool" {
  name = "mikael-hackaton-target-pool"
}

resource "google_compute_instance_group_manager" "mikael-hackaton-manager" {
  name = "mikael-hackaton-manager"
  base_instance_name = "mikael-hackaton"
  #instance_template = "${google_compute_instance_template.mikael-hackaton-template.self_link}"
  update_strategy   = "ROLLING_UPDATE"
  zone              = "${var.zone}"
  target_pools = ["${google_compute_target_pool.mikael-hackaton-target-pool.self_link}"]
  target_size  = 5

  version {
    name = "primary"
    instance_template = "${google_compute_instance_template.mikael-hackaton-template.self_link}"
  }

  version {
    name = "canary"
    instance_template = "${google_compute_instance_template.mikael-hackaton-template-canary.self_link}"
    target_size_fixed = 1
  }

  named_port {
    name = "http"
    port = 80
  }

  auto_healing_policies {
    health_check      = "${google_compute_health_check.mikael-hackathon-healthcheck.self_link}"
    initial_delay_sec = 10
  }

  rolling_update_policy {
    type                    = "PROACTIVE"
    minimal_action          = "REPLACE"
    max_surge_percent       = 100
    max_unavailable_percent = 50
    min_ready_sec           = 5
  }
}
```
2018-06-04 15:34:48 -07:00
Dana Hoffman
ac6e30d335
allow beta kubernetes logging; add monitoring validation (#1589)
Fixes #1577
2018-06-04 15:09:52 -07:00
Seth Vargo
3f9a5da0af Finish GH-1323 (#1574)
* Clarify format of GCP machineType property

This should not be in a URL style formatting, which the previous language seemed to be implying

* machineType docs for compute_instance_template

* Remove some accidental spaces

* Update from feedback

Closes GH-1323
2018-06-01 15:45:49 -07:00
The Magician
fd208dc7ca Autogenerate Disk resource (#1521). 2018-05-31 18:10:06 -07:00
Jonathan Pentecost
8f31fec857 New datasource: service account and service account key (#1535) 2018-05-31 17:31:45 -07:00
Paddy
c71ab3f62f Add link to sidebar for liens. (#1575) 2018-05-31 15:38:22 -07:00
Bruno
5f0dcf4787 Update container_cluster.html.markdown (#1570)
* Update container_cluster.html.markdown

Just a more clear explanation of what happens when this field is not provided, since there was already an issue with this topic.

* Update container_cluster.html.markdown

Cleared extra comma.
2018-05-31 09:29:48 -07:00
The Magician
6240cf2ab4 Add support for SSL policy to google_compute_target_ssl_proxy (#1568) 2018-05-30 16:00:53 -07:00
Tenorio Orta JM
8a77e42698 Added support for restoring default organization policies (#1477)
* Added support for restoring default organization policies

* Added support for restoring default folder/project organization policies

* Refactored code

* Fixes #1239

* Clarify docs

* Clarify docs

* Clarify docs
2018-05-30 15:48:08 -07:00
Tenorio Orta JM
c6b0cfcbfa Added user label support in sql_database_instance (#1372) (#1567)
* Added user label support in sql_database_instance (#1372)

* Fixes #1372
2018-05-30 15:32:11 -07:00
David Dobmeier
22be133626 Add "server_ca_cert" Attribute reference (#1563)
* Add "server_ca_cert" Attribute reference

Documents the addition of the `server_ca_cert` attribute for use in configuring SSL with GCP SQL Instances - added in PR #1020

* Updated formatting

Updates formatting to match the above fields.
2018-05-30 14:21:28 -07:00
Dana Hoffman
dc46348d67
Add support for custom request headers in backend services (#1537)
* revendor compute beta apis

* changes to subnetwork iam from api revendoring

* add support for custom request headers in backend services
2018-05-29 13:29:40 -07:00
Dana Hoffman
1af48cddf5
add disabled property to firewall (#1536)
* add disabled property to firewall

* add test and change update to patch
2018-05-29 13:27:29 -07:00
Vincent Roseberry
1d0f88f903
Clarify documentation around JSON credentials file (#1554) 2018-05-29 10:57:09 -07:00
etiennedub
656014540d Update compute_instance.html.markdown : add note about live migration and GPUs (#1540) 2018-05-28 09:55:10 -07:00
nownabe
a030dbe205 Fix link to app engine locations page (#1545) 2018-05-28 09:26:49 -07:00
Nathan McKinley
9681e76ed3
Update container_cluster.html.markdown
#1534 followup - those attributes are documented in the `master_auth` block, which previously didn't mention the computed attributes present.
2018-05-24 17:50:41 -07:00
mclavel
c2a8aeb868 Update container_cluster.html.markdown (#1534)
adding documentation about attributes `username` and `password` for `master_auth`.
2018-05-24 17:17:44 -07:00
Dana Hoffman
974c3f7646
Add GKE Shared VPC support (#1528)
All this needed was to allow setting the network/subnetwork to a self link.

~WIP for now because I want to run the tests in CI.~ Tests are passing.
2018-05-23 16:47:17 -07:00
Dana Hoffman
b8ac22d936
Add redis docs to sidebar (#1527) 2018-05-23 13:06:43 -07:00
The Magician
488b9e86f3 Redis resource (#1485)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-05-23 11:25:48 -07:00
Dana Hoffman
20616e424d
Use new serviceusage API for google_project_service[s] (#1522)
* vendor service usage api

* use serviceusage api instead of servicemanagement for project services

* add bigquery-json to test

* add import for project service

* add serviceusage_operation.go
2018-05-22 17:45:22 -07:00
Michael Parker
ed36405b02 Small typo fix for google_kms_key_ring_iam docs (#1517)
~binging~ => binding
2018-05-22 13:32:34 -07:00
Michael Parker
0f2f6a194e Updates google_kms_crypto_key_iam_binding documentation import syntax (#1518) 2018-05-22 12:48:20 -07:00
Jonathan Pentecost
73c65e80f0 website/docs/r/google_service_account_key.html.markdown: fixed docs (#1512) 2018-05-21 15:05:55 -07:00
Frank Schröder
42e7e4f30a Fix cloudiot example (#1514)
The topic names for state and event notifications are the other way around.
2018-05-21 15:04:48 -07:00
Justin Schulz
9184dbc957 Update PostGRES cloudsql docs (#1516)
This is now GA, so removing that caveat.
2018-05-21 14:57:50 -07:00
Nathan McKinley
ca83ea530a
Revert #1510 and #1508. (#1515) 2018-05-21 13:09:15 -07:00
Paddy
cd7364d649
Merge pull request #1503 from terraform-providers/paddy_app_engine_app
Add App Engine Application support
2018-05-18 17:12:34 -07:00
Nathan McKinley
5a8684d614
One more rename resourcemanager -> Resource Manager. (#1510) 2018-05-18 17:03:15 -07:00
Jonathan Pentecost
cfa914581a website/docs/d/datasource_client_config: docs use datasource (#1502)
The docs currently don't use the datasource version of
'google_client_config'. This PR just prefixes 'data.'
to 'google_client_config' in the datasource docs.
2018-05-18 10:48:31 -07:00
Christoph Tavan
0bcb01266c Add google_logging_project_exclusion resource (#990)
Adds support for log exclusions in billingAccounts, organizations,
folders and projects, see:
https://cloud.google.com/logging/docs/exclusions

```
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google -v -run=Exclusion -timeout 120m
=== RUN   TestAccLoggingBillingAccountExclusion_basic
=== PAUSE TestAccLoggingBillingAccountExclusion_basic
=== RUN   TestAccLoggingBillingAccountExclusion_update
=== PAUSE TestAccLoggingBillingAccountExclusion_update
=== RUN   TestAccLoggingFolderExclusion_basic
=== PAUSE TestAccLoggingFolderExclusion_basic
=== RUN   TestAccLoggingFolderExclusion_folderAcceptsFullFolderPath
=== PAUSE TestAccLoggingFolderExclusion_folderAcceptsFullFolderPath
=== RUN   TestAccLoggingFolderExclusion_update
=== PAUSE TestAccLoggingFolderExclusion_update
=== RUN   TestAccLoggingOrganizationExclusion_basic
=== PAUSE TestAccLoggingOrganizationExclusion_basic
=== RUN   TestAccLoggingOrganizationExclusion_update
=== PAUSE TestAccLoggingOrganizationExclusion_update
=== RUN   TestAccLoggingProjectExclusion_basic
=== PAUSE TestAccLoggingProjectExclusion_basic
=== RUN   TestAccLoggingProjectExclusion_disablePreservesFilter
=== PAUSE TestAccLoggingProjectExclusion_disablePreservesFilter
=== RUN   TestAccLoggingProjectExclusion_update
=== PAUSE TestAccLoggingProjectExclusion_update
=== CONT  TestAccLoggingBillingAccountExclusion_basic
=== CONT  TestAccLoggingOrganizationExclusion_update
=== CONT  TestAccLoggingProjectExclusion_update
=== CONT  TestAccLoggingFolderExclusion_folderAcceptsFullFolderPath
=== CONT  TestAccLoggingOrganizationExclusion_basic
--- PASS: TestAccLoggingProjectExclusion_update (3.60s)
--- PASS: TestAccLoggingOrganizationExclusion_update (4.40s)
=== CONT  TestAccLoggingFolderExclusion_update
--- PASS: TestAccLoggingOrganizationExclusion_basic (1.90s)
=== CONT  TestAccLoggingFolderExclusion_basic
--- PASS: TestAccLoggingBillingAccountExclusion_basic (6.21s)
=== CONT  TestAccLoggingBillingAccountExclusion_update
--- PASS: TestAccLoggingBillingAccountExclusion_update (5.90s)
=== CONT  TestAccLoggingProjectExclusion_disablePreservesFilter
--- PASS: TestAccLoggingProjectExclusion_disablePreservesFilter (3.90s)
=== CONT  TestAccLoggingProjectExclusion_basic
--- PASS: TestAccLoggingFolderExclusion_folderAcceptsFullFolderPath (16.67s)
--- PASS: TestAccLoggingProjectExclusion_basic (1.96s)
--- PASS: TestAccLoggingFolderExclusion_basic (15.30s)
--- PASS: TestAccLoggingFolderExclusion_update (18.35s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	22.810s
```
2018-05-18 08:55:04 -07:00
Vincent Roseberry
7a5a84e31d
Fix api link in region backend service (#1505) 2018-05-17 17:20:50 -07:00
The Magician
56481d8316 Add liens resource. (#1484) 2018-05-17 16:33:30 -07:00
Paddy
f78de6b76e Drop the resources we can't support.
IAP has no reasonable support policy, because PATCH is broken, and IAP
must be configured with an OAuth2 client ID and secret that belongs to
the project the app is associated with. There's no programmatic way to
create Clients. But we create the project and the app at the same time,
and we can't update because PATCH is broken. So this just drops IAP. It
also forces all our updates to ForceNew, because we can't update.

Also, adds more test coverage and docs, and fixes import by not relying
on the config for setting app engine info in state.
2018-05-17 14:47:34 -07:00
emily
6ae7dc6f72
document custom machine type for GKE cluster node config (#1497) 2018-05-15 16:10:04 -07:00
emily
d360236a8d
Allow bigquery regional location (#1496)
* Allow bigquery regional location

* remove stale comment about location
2018-05-15 14:36:12 -07:00
emily
3cc868b4a9
Fix order of getting project for storage notification topic (#1490)
* fix getting project for storage notification topic

* add more documentation for storage notification topic
2018-05-15 13:30:59 -07:00
The Magician
7d25053713 Don't override blindly ResourceRef description (#1483) 2018-05-14 15:04:41 -07:00
The Magician
5e0d39225f Release generated SSLPolicy (#1478) 2018-05-14 09:52:33 -07:00
The Magician
6a01bb8cff Fix indentation in property documentation (#1481) 2018-05-11 15:25:06 -07:00
The Magician
da0b6f9d48 Add support for ssl_policy to google_target_https_proxy (#1466) 2018-05-09 15:55:17 -07:00
Nathan McKinley
560e180693
Allow use of provider region, with big caveats in docs. (#1463) 2018-05-09 14:16:49 -07:00
Dana Hoffman
08b5804b70
add ability to retry cloud functions on failure (#1452) 2018-05-09 13:57:54 -07:00
Nathan McKinley
95e84aed83
Change in firewall rule handling so that only one service account (for source / target) is permitted. (#1462) 2018-05-09 13:38:00 -07:00
Dana Hoffman
8907321d60
Roll forward beta scaffolding PR (#1453)
* Revert "Merge pull request #1434 from terraform-providers/paddy_revert_beta"

This reverts commit 118cd71201, reversing
changes made to d59fcbbc59.

* add ConvertSelfLinkToV1 calls to places where beta links are stored
2018-05-09 11:24:40 -07:00
Rene Kroon
dda26771d3 #843: Add policy support to storage buckets (#1190) 2018-05-08 14:00:48 -07:00
Vincent Roseberry
038cd0b7d1
Add support for regional cluster in datasource (#1441) 2018-05-07 15:02:14 -07:00
Dan Couture
4f7a6c828f Add new google_cloudbuild_trigger resource (#1357) 2018-05-07 12:53:34 -07:00
Paddy Carver
aa2626b490 Revert "remove switch statements between api versions for compute"
This reverts commit bf1b3a24e8c1cac832e74d9d0e145c7010a4c2f1.
2018-05-04 07:51:45 -07:00
Paddy
afcd482297
Merge pull request #1387 from terraform-providers/paddy_spanner_instance_iam
Add support for IAM on Spanner Instances.
2018-05-03 15:46:31 -07:00
Dana Hoffman
30409d315e
Remove switch statements between api versions for compute (#1422) 2018-05-03 12:24:21 -07:00
Paddy
e000ff5035 Add docs for enabling flow logs. 2018-05-02 11:51:34 -07:00
Paddy Carver
6cb9f4c51c Merge branch 'master' into paddy_spanner_instance_iam 2018-05-02 11:39:08 -07:00
Paddy
008316fcd8
Merge pull request #1386 from terraform-providers/paddy_spanner_database_iam
Add IAM resources for Spanner databases.
2018-05-02 11:35:59 -07:00
The Magician
363f85a057 Ansible: Backend Bucket fixes (#1418) 2018-05-02 11:16:17 -07:00
Paddy Carver
bc74070785 Add warning about IAM policy. 2018-05-02 11:08:08 -07:00
Paddy
fa7b326792 Fix sidebar highlighting. 2018-05-02 11:04:19 -07:00
Paddy Carver
6827612f00 Add Spanner database IAM docs 2018-05-02 10:58:04 -07:00
Paddy
87a7af9c2b Merge branch 'master' into paddy_spanner_instance_iam 2018-05-02 10:40:20 -07:00
Paddy Carver
6c2e6de18e Add docs for spanner IAM. 2018-05-02 10:32:42 -07:00
The Magician
77a02b2b68 Generate google_target_tcp_proxy using Magic Modules (#1415) 2018-05-02 10:01:37 -07:00
Clint
4ccb099699 Fix page render of \" for DNS Record docs, also reword a bit (#1414) 2018-05-01 15:22:29 -07:00
The Magician
7eac32ab1f Generate google_target_tcp_proxy using Magic Module (#1406) 2018-05-01 15:04:56 -07:00
The Magician
1d05aa3a3a Generate google_vpn_gateway using Magic Module (#1409) 2018-05-01 13:48:56 -07:00
The Magician
2e9c14ea49 Fix generated documentation to avoid breaking layout (#1405) 2018-04-30 14:27:45 -07:00
The Magician
df568b188c Release generated GlobalAddress (#1379) 2018-04-27 14:53:45 -07:00
The Magician
b3a722ee39 Generate google_target_http_proxy using MagicModule (#1391) 2018-04-26 18:06:10 -07:00
Darren Haken
2b1b668953 #1300 Supporting regional clusters for node pools (#1320)
This PR also switched us to using the beta API in all cases, and that had a side effect which is worth noting, note included here for posterity.

=====
The problem is, we add a GPU, and as per the docs, GKE adds a taint to
the node pool saying "don't schedule here unless you tolerate GPUs",
which is pretty sensible.

Terraform doesn't know about that, because it didn't ask for the taint
to be added. So after apply, on refresh, it sees the state of the world
(1 taint) and the state of the config (0 taints) and wants to set the
world equal to the config. This introduces a diff, which makes the test
fail - tests fail if there's a diff after they run.

Taints are a beta feature, though. :) And since the config doesn't
contain any taints, terraform didn't see any beta features in that node
pool ... so it used to send the request to the v1 API. And since the v1
API didn't return anything about taints (since they're a beta feature),
terraform happily checked the state of the world (0 taints I know about)
vs the config (0 taints), and all was well.

This PR makes every node pool refresh request hit the beta API. So now
terraform finds out about the taints (which were always there) and the
test fails (which it always should have done).

The solution is probably to write a little bit of code which suppresses
the report of the diff of any taint with value 'nvidia.com/gpu', but
only if GPUs are enabled. I think that's something that can be done.
2018-04-24 17:55:21 -07:00
The Magician
e02587855a Release autogenerated google_compute_target_ssl_proxy resource (#1373) 2018-04-24 14:01:53 -07:00
Nathan McKinley
d3bbfbd22b
Add DNS PTR record to Compute Instance (#1349) 2018-04-20 11:14:38 -07:00
The Magician
e67ca9d0c3 Magic Modules changes. (#1362) 2018-04-19 15:48:25 -07:00
jschwing
0ae2047783 Add max_connections and max_connections_per_instance to backend service (#1353) 2018-04-19 14:00:34 -07:00
Nathan McKinley
8ca616e707
Add default cluster version to data source. (#1355) 2018-04-19 10:59:52 -07:00
Nathan McKinley
3628e263e2
Switch from protoc_output to protoc_output_base64. (#1290) 2018-04-17 13:00:37 -07:00
Vincent Roseberry
49191c5d91
Fix auto-delete default network in google_project. (#1336)
* Use projectId and enable required compute API

* Delete firewall rules before deleting default network
2018-04-16 10:25:49 -07:00
Shashank Saxena
59697c6f6b Typo in the documentation (#1330)
Fixed a small but pretty critical typo on the terraform docs for GCP
2018-04-13 11:39:12 -07:00
Vincent Roseberry
4695f6fe81
Notice changes (#1329) 2018-04-12 16:08:42 -07:00
Dana Hoffman
bde72e7576
un-deprecate name_prefix for instance templates (#1328) 2018-04-12 16:08:31 -07:00
Stefan Schmidt
4b4b3d916c Fix the example GCloud command line for listing the enabled APIs. (#1325) 2018-04-12 13:26:34 -07:00
Gabriel A.S
814e1fc63e Add missing markdown rulers (#1319)
* Update compute_region_instance_group_manager.html.markdown

* Update compute_instance_group_manager.html.markdown
2018-04-11 15:21:48 -07:00
The Magician
3c8f6b31b6 Extend description for Http(s)HealthCheck resources. (#1304) 2018-04-11 13:41:12 -07:00
Nathan McKinley
98dbf7a758
Delete the default network created by the project. (#1316) 2018-04-10 15:23:04 -07:00
Brandon Ooi
34e9e995e3 Google managed zone dns_name argument requires a fully qualified domain name. 2018-04-09 14:51:04 -07:00
Dominik Lekse
cde62c3935 Add additional example usages to google_dns_record_set documentation (#1308) 2018-04-09 14:46:42 -07:00
Dana Hoffman
cd0a462735
add subnetwork iam resources (#1305) 2018-04-06 17:38:48 -07:00
lnesci
b02686b9eb google folder data source (#1280)
* adding google folder data source with get by id, search by fields and lookup organization functionality

* removing search functionality

* creating folders for each test and updating documentation with default values
2018-04-05 16:59:47 -07:00
Paddy Carver
668e7b6b39 Fix broken link. 2018-04-05 16:08:38 -07:00
ashish-amarnath
f488a6e6bf Add support for regional GKE clusters in google_container_cluster (#1181)
* Add support for regional GKE clusters in google_container_cluster:

* implement operation wait for v1beta1 api
* implement container clusters get for regional clusters
* implement container clusters delete for regional cluster
* implement container clusters update for regional cluster
* simplify logic by using generic 'location' instead of 'zone' and 'region'
* implement a method to generate the update function and refactor
* rebase and fix

* reorder container_operation fns

* cleanup

* add import support and docs

* additional locations cleanup
2018-04-05 14:51:35 -07:00
Michael Parker
b8adcc28fe Updates container_cluster to set enable_legacy_abac to false by default (#1281)
* Updates the default GKE legacy ABAC setting to false

* Updates docs for container_cluster

* Update test comments

* Format fix

* Adds ImportState test step to default legacy ABAC test
2018-04-04 10:58:08 -07:00
Vincent Roseberry
f8efd6376b
Update google_service_account_key.html.markdown (#1284) 2018-04-04 09:08:08 -07:00
Dana Hoffman
7bee5507f6
add timeouts support for sql database instance (#1288)
* add timeouts support for sql database instance

* rm a tag
2018-04-03 14:44:18 -07:00
emily
360260d8d0
Add project to container cluster import name. (#1282)
* allow import of container cluster by project as well

* update docs for importing container cluster with project

* combine tests
2018-04-03 13:39:28 -07:00
Dominik Lekse
3460ddcaa7 Retrieve current OAuth access token from google_client_config data source (#1277)
* Added access_token field to google_client_config data source

* Refined documentation of google_client_config
2018-04-03 12:54:48 -07:00
Dana Hoffman
7596164ad1
Deprecate name_prefix (#1035)
* deprecate name_prefix

* make name_prefix computed and add migration instructions
2018-04-02 10:28:59 -07:00
Adrián Matellanes
1f6ffa0f4b Add time partitioning field to google_bigquery_table resource (#1240)
* Add time partitioning field to google_bigquery_table resource

* Fix flatten time partitioning field to google_bigquery_table resource

* Add resource bigquery table time partitioning field test

* Move resource bigquery table time partitioning field test to basic

* Add step to check that all the fields match

* Mark resource bigquery table time partitioning field as ForceNew

* Add time partitioning field test to testAccBigQueryTable config
2018-03-30 10:15:06 -07:00
Janos Lenart
1840363c74 Adding private_cluster (#1250)
* Updated google.golang.org/api/container/v1beta1

* Added support for private_cluster and master_ipv4_cidr

This is to implement #1174. See
https://groups.google.com/forum/#!topic/google-cloud-sdk-announce/GGW3SQSANIc

* Added simple test for private_cluster and master_ipv4_cidr

* Review replies

* Added some documentation for private_cluster
2018-03-30 10:10:25 -07:00
Paddy
ea3d1034d6
Merge pull request #1260 from wayfair/ishashchuk_rigm_rolling
rIGM rolling update support
2018-03-29 14:30:17 -07:00
Dana Hoffman
33d87a2bc1
add support for node pool versions (#1266) 2018-03-29 13:27:11 -07:00