Commit Graph

47 Commits

Author SHA1 Message Date
The Magician
00568c1d73 Sql database port (#3639)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-05-17 11:15:18 -07:00
The Magician
53cc7fe1ee Add better error message for sql 409 (#3414)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-04-11 11:13:12 -07:00
The Magician
2f83c9dd2a Retry reads in Cloud SQL Database Instance (#3366)
<!-- This change is generated by MagicModules. -->
Original Author: @rileykarson
2019-04-03 13:27:44 -07:00
The Magician
f0941f7138 Remove 'Set' from fields where it doesn't do anything (#3364)
<!-- This change is generated by MagicModules. -->
Original Author: @chrisst
2019-04-02 13:58:53 -07:00
The Magician
8be6190ab7 Parse 409 error strings to determine retriable status (#3285)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-03-22 10:24:05 -07:00
The Magician
10be93463d Add convenience outputs for public/private IP in Cloud SQL (#3091)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2019-02-20 11:06:20 -08:00
The Magician
23db6b0c12 Fix golangci-lint errors (#3059)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-02-14 16:00:35 -08:00
The Magician
51bf6f432a [Terraform] ip_address.0.time_to_retire it's not optional (#2965)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-01-30 13:03:51 -08:00
The Magician
b31626a1a2 Retry SQL delete calls on 409 (#2811)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-01-07 16:44:54 -08:00
The Magician
c605b0bc4b [Terraform]: Apply gofmt -s to all files managed by MM (#2676)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
0cb07dccc8 add sql private ip to ga provider (#2662) 2018-12-20 17:22:22 -08:00
The Magician
b86d57359f mark region as computed in sql db instance since we use getregion (#2635) 2018-12-20 17:22:22 -08:00
The Magician
0533cab84d send maintenance_window.hour even if it's zero, since that's a valid value (#2630) 2018-12-20 17:22:22 -08:00
The Magician
ff1840989b Website changes for SQL private IP + new computed field (#2509)
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-12-20 17:22:22 -08:00
Riley Karson
5eab9af814 Make google_sql_database_instance authoritative. (#2203) 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
Riley Karson
5512f8a961 Guard against nil empty typelists. 2018-10-11 09:48:19 -07:00
Riley Karson
3f47f06e52
Refactor google_sql_database_instance to use Expand functions. (#2137)
Refactor `google_sql_database_instance` to use Expand functions in Create. Update will start using them when we make the resource authoritative, this change does not modify the resource functionality.
2018-10-03 07:59:07 -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
Paddy Carver
010c0f3288 Update README and run fmt. 2018-09-05 15:24:22 -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
Dana Hoffman
b4bb79f58e
lock on master name when creating replicas (#1798) 2018-07-24 15:32:18 -07:00
Nathan McKinley
a64056156c Reject disk shrinkage. 2018-06-20 15:17:49 -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
emily
acaf767f33 Fix panic on empty maintenance window (#1507)
* fix maintenance window panic

* tiny cleanup
2018-05-22 13:31:39 -07:00
Nao YONASHIRO
1e38b21854 fix: replica_configuration.password to be sensitive (#1468) 2018-05-10 15:31:07 -07:00
Nathan McKinley
560e180693
Allow use of provider region, with big caveats in docs. (#1463) 2018-05-09 14:16:49 -07:00
Nathan McKinley
7e5ce3f679
Bump timeouts - users are still experiencing failures. (#1381) 2018-04-25 12:24:52 -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
Nathan McKinley
4b15990dc3
Investigate and fix flaky sql user test. (#1212) 2018-03-23 14:19:39 -04:00
Genevieve
7e358d894a SQL DB Instance has attribute first_ip_address (#1050)
* Expose first ip address on sql db instance.

Signed-off-by: Desmond Pompa Alarcon Rawls <captaingrover@gmail.com>

* Use the ip_address key on the first map in ip_address list.

Signed-off-by: Genevieve LEsperance <glesperance@pivotal.io>

* Run first_ip_address test check if there is an ip address.

Signed-off-by: Desmond Pompa Alarcon Rawls <captaingrover@gmail.com>

* Add first_ip_address to sql db instance scheme.

Signed-off-by: Genevieve LEsperance <glesperance@pivotal.io>
2018-03-01 17:12:33 -08:00
Jeff Johnson
d9a4be0c6c Remove Optional flag from Computed server_ca_cert resource (#1025)
Response to PR comment:
https://github.com/terraform-providers/terraform-provider-google/pull/1020#pullrequestreview-92660096
2018-01-30 14:37:30 -08:00
Jeff Johnson
6e101dd3b7 Add support for Cloud SQL CA Cert (#635)
Expose the 'ServerCaCert' object from the Cloud SQL Instance[1]

Related: #635 - Solves first point

[1] https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances#resource
2018-01-29 13:53:54 -08:00
Lawrence Jones
9f42aeb652 PostgreSQL high availability (#1001)
* Update sqladmin api

Pull in updates to the generated sqladmin api and update callers for
the change in the StorageAutoResize setting

* Add support for availability_type setting

Allow specifying ZONAL or REGIONAL to allow for PostgreSQL HA
setup.

* vendor: update sqladmin/v1beta4

* Test setting AvailabilityType for PostgreSQL

Add tests that cover the creation of a Postgres database with
AvailabilityType set to REGIONAL, and correct some small issues that
were preventing compilation.

* Fix breaking change w/ disk_autoresize in cloudsql

95e5582766

The cloudsql admin client changed the way it handles StorageAutoResize
as a parameter, in order to be more explicit about when the server has
ommitted the field. This changed the type from being bool to *bool, and
we need to modify provider code so that we supply the right value to the
api client.
2018-01-24 09:23:48 -08:00
Dana Hoffman
0ef0367273
give disk_autoresize a default (#806) 2017-11-29 15:51:00 -08:00
Vincent Roseberry
6c5d6b72e0
Store project and region in state (#784)
* Store project and region in state

* Delete unused project in runtimeconfig_variable
2017-11-27 16:32:20 -08:00
Vincent Roseberry
6adbdcfaee
Change authorized_networks to set (#733) 2017-11-13 12:51:15 -08:00
Dana Hoffman
2db85e8e75 Add new retry wrapper fn, retry sql database instance operations that commonly 503 (#417)
* Retry sql database instance operations that commonly 503

* use new retry wrapper fn in resource_storage_bucket.go
2017-10-03 12:41:04 -07:00
Dana Hoffman
cc8ea81117 Fix a few instances where we read the project from the provider config and not using the helper function (#469) 2017-09-26 17:01:52 -07:00
Joe Selman
7dea4e86c1 Export connection_name on sql instance resource (#406) 2017-09-12 08:04:13 -07:00
Joe Selman
84fa7ccd27 Don't attempt to delete default users on replica (#360)
* Don't attempt to delete default users on replica

* Test that we don't attempt to delete root user on replica
2017-09-07 12:44:17 -07:00
Joe Selman
b29337dbfb Fix bug where flattened ip_address had extra empty element (#357)
The combination of append and preallocation of the ips caused extra
empty elements at the beginning of the list.
2017-08-25 09:13:37 -07:00
Dana Hoffman
947c18ec7a Persist state from the API for google_sql_database_instance regardless of what attributes the user has set (#208) 2017-08-01 13:13:09 -07:00
Riley Karson
4cc6e9939a Add name validation function, standardise validation functions used (#164)
* Used standard validation functions where possible, added a GCP name validation function.

* Add tests for GCP name, factor out a ValidateRegexp function.

* make fmt
2017-07-07 12:48:29 -07:00
Mike Fowler
58a6b3f80e Add import for google_sql_database_instance (#11)
* Add import for `google_sql_database_instance`

* Alterations suggested by review

* Move declaration of array for clarification
2017-06-22 10:25:26 -07:00
Jake Champlin
66029ac431
Transfer google provider 2017-06-06 11:58:51 -04:00