Commit Graph

63 Commits

Author SHA1 Message Date
Vincent Roseberry
076d31dd69 Support import for google_compute_instance_group (#201) 2017-07-20 09:21:18 -07:00
Joe Selman
4c8f62edf6 Add additional fingerprint error to check for when updating metadata (#221) 2017-07-19 15:33:07 -07:00
Vincent Roseberry
d9abcd8a9f Support path-only when referencing ssl certificate in compute_target_https_proxy (#210) 2017-07-19 13:49:14 -07:00
Joe Selman
8f75c1c9a5 Fix bug where range variable is improperly dereferenced (#217)
* Fix bug where range variable is improperly dereferenced

* Add comment explaining why a value is copied
2017-07-19 13:19:27 -07:00
Vincent Roseberry
f4db3fd1aa Support import for google_compute_https_health_check (#213) 2017-07-18 11:35:24 -07:00
Joe Selman
236c0f5d24 Add support for google_compute_project_metadata_item (#176)
* Add support for google_compute_project_metadata_item

This allows terraform users to manage single key/value items within the
project metadata map, rather than the entire map itself.

* Update CHANGELOG.md

* Add details about import
2017-07-17 16:28:51 -07:00
Stefan Schmidt
9e5aa27677 Add charset and collation to google_sql_database. (#183)
* Add charset and collation to google_sql_database.

* Add documentation for charset, collation attributes.

* Extend the existing acceptance test to also cover charset and collation.

* Charset and collation always have a value present. Also inline.

* Move charset and collation to optional arguments.

* Add charset and collection to the example.

* Document charset and collation defaults.

* Keep TestAccGoogleSqlDatabase_basic as is, add TestAccGoogleSqlDatabase_update.
2017-07-17 08:32:29 -07:00
Vincent Roseberry
af69c8cead Change description field to not be Computed (#199) 2017-07-14 15:45:06 -07:00
Vincent Roseberry
a5281c6e7c Add import support for google_compute_image. (#194)
* Add import support for google_compute_image.

* Added comment explaning why we set the create_timeout in the import state method

* Don't ForceNew for create_timeout field

* Update image name in import documentation
2017-07-14 13:32:25 -07:00
Dana Hoffman
2367357869 Update compute instance docs/tests to use new boot and scratch disk attributes (#189)
* update compute instance docs to use new boot and scratch disk attributes, document attached_disk

* Update compute instance tests to mostly use new boot and scratch disk attributes

* Fix encryption test by setting values in state from what was there before
2017-07-14 10:57:23 -07:00
Vincent Roseberry
666351627d Read named ports changes properly in google_compute_instance_group (#188) 2017-07-13 10:24:25 -07:00
Stefan Schmidt
e6e91ecbed Allow unlinking of billing account. (#138)
* Allow unlinking of billing account. Closes #133

* Add acceptance test for unlinking the billing account.

* Just apply the resource definition without the billing account instead of setting an empty billing account.
2017-07-12 16:05:14 -07:00
Joe Selman
95e72d513e Merge pull request #177 from terraform-providers/bigtable-support
Add support for Google Cloud Bigtable.
2017-07-11 16:26:51 -07:00
Riley Karson
e5c73829cb Removed useless log statement, changed client factory receivers from pointers to struct. 2017-07-11 16:13:46 -07:00
Joe Selman
e5d55df82b Merge pull request #172 from ubschmidt2/testacc_default
Allow for running acceptance tests using the default credentials.
2017-07-11 14:21:39 -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
Dana Hoffman
ae5ea9fd0f allow updating additional_zones, turn it into a set (#152) 2017-07-05 16:00:49 -07:00
Riley Karson
124555b8d7 Rearranged bigtable imports. 2017-07-05 12:54:38 -07:00
Riley Karson
e5ff2b7bcd Updated google_bigtable_table tests. 2017-07-05 10:46:11 -07:00
Riley Karson
a358f4147f Clear BigtableTable schema when resource missing, pass along missing error. 2017-07-05 10:46:11 -07:00
Riley Karson
d0d116fa3e Add support for Bigtable table. 2017-07-05 10:46:11 -07:00
Stefan Schmidt
6e96e8473d Allow for running acceptance tests using the default credentials.
This change adds another option for supplying authentication credentials
to acceptance tests: If GOOGLE_USE_DEFAULT_CREDENTIALS is set, the default
credentials are used. When run from a compute engine instance, the compute
engine default credentials are used. When run from the user's workstation,
the user's credentials are used, if the user has authenticated with the
GCloud CLI beforehand.
2017-07-05 15:41:58 +02:00
Dana Hoffman
32bf0df2d0 Add scratch_disk property to google_compute_instance and deprecate disk (#123)
* Add scratch_disk property to google_compute_instance

* docs for scratch_disk

* limit scope of scratchDisks array by using bool, test formatting

* add slash back to disk check
2017-06-28 15:43:58 -07:00
Dana Hoffman
549e1314f9 Add boot_disk property to google_compute_instance (#122)
* Add boot_disk property to google_compute_instance

* docs for boot_disk

* limit scope of bootDisk, use bool instead

* test formatting

* make device_name forcenew, add sha256 encryption key
2017-06-28 15:36:00 -07:00
Riley Karson
28b35fa3dd Clear bigtable instance when gone, pass along error message. 2017-06-28 13:28:47 -07:00
Riley Karson
ec2f933252 Changed Bigtable instance to use InstanceInfo instead of iterating the list of infos. 2017-06-28 13:28:47 -07:00
Joe Selman
1137ee7023 Merge pull request #150 from selmanj/add_labels_to_compute_instance
Add support for using labels on compute_instance
2017-06-28 09:44:32 -07:00
stack72
8798346e70 Add an acceptance test to show timeouts in container_cluster 2017-06-28 11:34:20 +03:00
sovanesyan
b2f789ca0a provider/google: Add Timeout support to google_container_cluster
Migrated from https://github.com/hashicorp/terraform/pull/13203
2017-06-28 11:24:28 +03:00
Riley Karson
5bceaef26f Moved required fields and updated docs. 2017-06-26 15:13:18 -07:00
Riley Karson
048bfe5857 Renamed ClientFactoryBigtable to BigtableClientFactory 2017-06-26 15:13:18 -07:00
Riley Karson
2c2615317b Changes based on review including default values in schema and inlining object properties. 2017-06-26 15:13:18 -07:00
Riley Karson
53b91630f5 Bigtable instance support. 2017-06-26 15:13:18 -07:00
Joe Selman
e3c27065dc Add support for using labels on compute_instance 2017-06-26 10:37:16 -07:00
Riley Karson
e5267f2c6f Fix read method + test/document import for google_compute_health_check (#155)
* Read health check block + add import support to google_compute_health_check.

* Updated google_compute_health_check documentation.
2017-06-26 18:25:22 +03:00
Paddy
89431e9a2a Merge pull request #147 from pmcatominey/firewall-source
compute_firewall: set source_ranges to Computed to avoid perpetual diff
2017-06-22 13:29:20 -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
Mike Fowler
719c556f0c Add ability to import google_sql_database (#12)
* Add ability to import `google_sql_database`

* Update from code review

* Ensure split id length and report error otherwise
2017-06-22 09:13:05 -07:00
Peter McAtominey
763f67c22c compute_firewall: set source_ranges to Computed to avoid perpetual diff
If this is not set in Terraform, then the API defaults to 0.0.0.0/0,
Terraform would then attempt to remove that value and so on.
2017-06-21 09:51:25 +01:00
Paul Stack
576d52bd0e Merge pull request #145 from rileykarson/144-health-checks-count
Restrict the number of health_checks in Backend Service resources to exactly 1.
2017-06-21 11:46:03 +03:00
Riley Karson
f07a08bd76 Test that HTTPS health checks are supported for google_compute_backend_service. 2017-06-20 10:59:56 -07:00
Joe Selman
ccfe6d4c25 Merge pull request #142 from selmanj/update_go_vendor_dependency
Update compute api client and AutomaticRestart usage
2017-06-20 10:27:00 -07:00
Riley Karson
6f8b415b42 Restrict the number of health_checks in Backend Service resources to 1. 2017-06-20 10:26:09 -07:00
Paddy
33abfb4b77 Update container_engine_versions test. (#143)
Only expect 1 container engine master version, not 2. The API is only
currently reporting one. This fixes the failing test.
2017-06-20 06:29:26 -05:00
Joe Selman
5583b6d932 Update compute api client and AutomaticRestart usage
Instance.AutomaticRestart changed from a bool to a *bool to distinguish between
an empty value vs an explicitly set value. See
https://github.com/google/google-api-go-client/issues/196 for more context.
2017-06-19 20:48:21 -07:00
Riley Karson
aa48489a05 Make path_rule Optional in google_url_map's path_matcher block. (#118)
* Made path_rule optional for path_matcher in google_compute_url_map.

* Updated google_compute_url_map docs.

* Updated test configuration formatting.
2017-06-19 10:48:22 -07:00
Dana Hoffman
dcb564b23d Merge pull request #7 from unguiculus/feature/tags_labels
Add support for labels and tags on GKE node_config
2017-06-19 10:04:57 -07:00
Dana Hoffman
5ed93e8d34 Merge pull request #137 from danawillow/instance-tests
formatting changes for google_compute_instance tests
2017-06-19 09:57:56 -07:00
Dana Hoffman
7554df9754 Merge pull request #117 from rileykarson/115-gcs-bucket-uppercase-location
Represent GCS Bucket locations as uppercase in state.
2017-06-16 16:55:43 -07:00
Dana Hoffman
4ee6fc5602 formatting changes for google_compute_instance tests 2017-06-16 16:44:56 -07:00