Commit Graph

2314 Commits

Author SHA1 Message Date
Ian L
b4be2fa124 Add basic update for google_kms_crypto_key resource (#1511)
* Add basic update for `google_kms_crypto_key` resource

Prior to this commit, any changes to `rotation_period` would
force a new resource as no `Update` was defined for the resource.
This commit introduces a basic `Update` through calling the
`Patch` service method. It only modifies the `rotation_period`,
and `next_rotation_time` at the moment, but this is reflective
of what is "allowed" on https://console.cloud.google.com/security/kms.

* Remove unused `Purpose` value in `CryptoKey`

We are only patching the `rotation_period`, and `next_rotation_time`,
so that value will not be affected.

* nit: format `Patch` operation to be in a single line

* Extend `TestAccKmsCryptoKey_rotation` test steps

- Test change in rotation period
- Test removal of rotation period

* Do not parse `NextRotationTime` if it is not set

* remove ForceNew: false
2018-05-29 17:20:32 -07:00
Vincent Roseberry
62f5ee359b
Update CHANGELOG.md 2018-05-29 14:46:26 -07:00
Vincent Roseberry
e4c9b2d4b1
Add a DiffSupress for ipv6 shortening (#1551) 2018-05-29 14:43:39 -07:00
Vincent Roseberry
a598390697
Update CHANGELOG.md 2018-05-29 14:28:13 -07:00
Vincent Roseberry
8bb494520f
project field for google_project_services can use the default provider project (#1553) 2018-05-29 14:26:58 -07:00
Vincent Roseberry
61dcc56282
Update CHANGELOG.md 2018-05-29 14:25:10 -07:00
Vincent Roseberry
8c2f47ba69
Remove label from bucket (#1550)
* Remove label from bucket

* Remove debugging statement

* Fix typos
2018-05-29 14:23:37 -07:00
Dana Hoffman
66afc153ab
Update CHANGELOG.md 2018-05-29 13:30:37 -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
926420ab90
Update CHANGELOG.md 2018-05-29 13:28:38 -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
33899fc64c
Update CHANGELOG.md 2018-05-29 11:40:03 -07:00
Jamie Lennox
cd83bab7dc Use the project defined in the trigger_template when creating trigger (#1556)
When creating a trigger by using the project defined in the schema we
enforce that the repo must be in that same project. We should be looking
at the project defined in the trigger_template data and falling back to
that first project if not found.

Closes: #1555
2018-05-29 11:38:12 -07:00
Vincent Roseberry
cdcda8384a
Update CHANGELOG.md 2018-05-29 11:02:42 -07:00
Vincent Roseberry
f0857a09d5
Accept subnetwork name only in forwarding rule (#1552)
* Accept subnetwork name only in forwarding rule

* Fix acceptance test
2018-05-29 11:00:04 -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
tf-release-bot
a16f106a53 Cleanup after v1.13.0 release 2018-05-24 17:08:04 +00:00
tf-release-bot
8a35c173c5
v1.13.0 2018-05-24 17:03:11 +00:00
Dana Hoffman
2497272795
Update CHANGELOG.md 2018-05-23 16:47:41 -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
Paddy
53450244c3
Merge pull request #1523 from terraform-providers/paddy_project_read_fix
Ignore API not enabled errors when reading project
2018-05-23 14:53:48 -07:00
Paddy
23acaf2dd3
Merge pull request #1524 from terraform-providers/paddy_eventual_services
Guard against eventually consistent services
2018-05-23 14:53:14 -07:00
Dana Hoffman
b8ac22d936
Add redis docs to sidebar (#1527) 2018-05-23 13:06:43 -07:00
Dana Hoffman
1d39ee946a
Update CHANGELOG.md 2018-05-23 11:26:50 -07:00
The Magician
488b9e86f3 Redis resource (#1485)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-05-23 11:25:48 -07:00
Paddy Carver
4ec59fccea Guard against eventually consistent services
When enabling services, after the waiter returns, list the enabled
services and ensure the ones we enabled are in there. If not, retry. May
not always resolve #1393, but should help. Unfortunately, the real
answer is probably either:

1. For us to try and get the API updated to only return the waiter when
the service will consistently be available. I don't know how feasible
this is, but I'm willing to open a ticket.
2. For us to build retries into ~all our resources to retry for a set
amount of time when a service not enabled error is returned. This would
greatly slow down the provider in the case of the service legitimately
not being enabled, but is how other providers handle this class of
problem.

Unfortunately, due to the eventual consistency at play, this is a hard
issue to reproduce and prove, though it matches with my
experience--while testing this patch, one of the tests failed with the
error that the serviceusage API hadn't been enabled, but only on step 4
of the test, when calls had already succeeded. Which suggests eventual
consistency, to me. Regardless, this patch shouldn't _hurt_ and should
mostly be an imperceptible change to users, and should make instances
like #1393 less likely.
2018-05-23 04:01:05 -07:00
Dana Hoffman
cac3502bac
Update CHANGELOG.md 2018-05-22 17:56:25 -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
Paddy Carver
4c40febd4b Ignore API not enabled errors when reading project
When reading a project, both App Engine and Billing would fail if
_neither_ the default project the provider was configured with nor the
project being targeted had the App Engine Admin or Billing APIs
(respectively) enabled. We didn't catch this because our source project
obviously has both enabled.

This fixes the matter by checking the error returned from each of those,
and if it looks like an API not enabled error, logging it at warning
level instead of returning it as an error, which will let the read
proceed as usual.
2018-05-22 16:59:33 -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
Dana Hoffman
33b0ed4859
Update CHANGELOG.md 2018-05-22 13:32:06 -07:00
emily
acaf767f33 Fix panic on empty maintenance window (#1507)
* fix maintenance window panic

* tiny cleanup
2018-05-22 13:31:39 -07:00
Dana Hoffman
54e85c9c6e
Update CHANGELOG.md 2018-05-22 13:06:09 -07:00
Shinichi TAMURA
028ec27ccf Fixed region_backend_service to calc hash using relative path (#1491)
Along the change on region_backend_service.backend[].group to use DiffSuppressFunc (#1487), we also need to change hash function, as [pointed out](https://github.com/terraform-providers/terraform-provider-google/pull/1487#issuecomment-389000239).

Fixed this in a same way regular backend services do.
https://github.com/terraform-providers/terraform-provider-google/blob/v1.12.0/google/resource_compute_backend_service_migrate.go#L102-L103
2018-05-22 13:05:38 -07:00
Michael Parker
0f2f6a194e Updates google_kms_crypto_key_iam_binding documentation import syntax (#1518) 2018-05-22 12:48:20 -07:00
Dana Hoffman
5da02f7ffc
Update CHANGELOG.md 2018-05-22 12:46:23 -07:00
Tenorio Orta JM
9ac7acc164 Added name and project_id regex validations (#1498) (#1519) 2018-05-22 12:45:28 -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
Dana Hoffman
bc8f3046ad
initial tf changes needed to support redis (#1513) 2018-05-21 12:01:06 -07:00
Paddy
f551e71bde
Update CHANGELOG.md 2018-05-18 17:13:38 -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
Paddy Carver
98b6323342 Fix suggestions from @ndmckinley. 2018-05-18 17:01:40 -07:00