Commit Graph

1546 Commits

Author SHA1 Message Date
Paddy
f9236abdf8 Add the google_project_iam_member resource.
Adds the google_project_iam_member resource, which just ensures that a
single member has a single role.

google_project_iam_member should not be used to grant permissions to a
role controlled by google_project_iam_binding or to a policy controlled
by google_project_iam_policy, as they'll fight for control.
2017-07-03 20:59:26 -07:00
Paddy
a84b22dda2 Fix vet errors.
Add the missing parameter to Errorf statements.
2017-07-03 20:53:32 -07:00
Paddy
65a4a36362 Remove ID when binding isn't found.
It shouldn't be an error, we should just remove that binding from state.
2017-07-03 20:50:25 -07:00
Paddy
11abe2447c Fix reads, make ForceNew.
Changing the role is ForceNew, because the role is part of the ID.

Make reads go through to the Binding functions, not the Policy
functions. That's embarrassing.
2017-07-03 19:36:55 -07:00
Paddy
8e704876bc Add google_project_iam_binding resource.
Add a resource that manages just a single binding within a Google
project's IAM Policy.

Note that this resource should not be used when
google_project_iam_policy is used, or they will fight over which is
correct.

This also required wrapping the error returned from setProjectIamPolicy,
as we need to test to see if it's a 409 error and retry, which can't be
done if we just use fmt.Errorf.
2017-07-03 19:01:08 -07: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
Dana Hoffman
fc3d41ec93 Merge pull request #65 from rileykarson/13-instance-group-manager-target-size
Changed google_compute_instance_group_manager target_size default to 0.
2017-06-16 15:50:50 -07:00
Riley Karson
de9b9a05b5 go fmt 2017-06-16 15:41:26 -07:00
Riley Karson
3f26ea6425 Updated variable names and docs. 2017-06-16 15:39:44 -07:00
Dana Hoffman
deca31e8e8 Merge pull request #101 from rileykarson/85-regional-backend-service-connection-draining
Support connection_draining_timeout_sec  in google_compute_region_backend_service
2017-06-16 10:41:11 -07:00
Riley Karson
74196a6b4f Added test for uppercasing google_storage_bucket locations. 2017-06-16 09:47:26 -07:00
Riley Karson
18e13bfd79 Added additional check that connection_draining_timeout_sec was reset in tests. 2017-06-16 09:27:48 -07:00
Clint
a12c0740b1 Compute and Disk fixes (#1)
* compute_disk: update image in test

* disk_image: add default type, make size computed

* compute_dis: wait on disk size operations to complete before moving on

* update docks on the image
2017-06-14 16:31:40 -05:00
Joe Selman
3b7f6d67da Add compute_backend_service import support (#40)
* Add compute_backend_service import support

* Fixed the nit

* Made example names a bit more intuitive

* Use underscores wherever possible instead of dashes
2017-06-14 16:13:52 -05:00
Riley Karson
1b14b27468 Represent all GCS Bucket locations as uppercase. 2017-06-13 14:51:04 -07:00
Riley Karson
db7d089298 Added connection_draining_timeout_sec support to google_compute_region_backend_service 2017-06-13 14:08:15 -07:00
Riley Karson
78b0879c6d Changed google_compute_instance_group_manager target_size default to 0. 2017-06-13 12:43:18 -07:00
Reinhard Nägele
eb3e108c4b Add support for labels and tags on GKE node_config 2017-06-12 16:29:30 +02:00
Jake Champlin
8602b34591 Transfer google provider 2017-06-09 16:50:30 +00:00