Paul Stack
46e72bd497
provider/google: Set instances to computed in compute_instance_group ( #15025 )
...
Fixes : #15024
```
% make testacc TEST=./builtin/providers/google TESTARGS='-run=TestAccComputeInstanceGroup_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/06/02 20:48:54 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/google -v -run=TestAccComputeInstanceGroup_ -timeout 120m
=== RUN TestAccComputeInstanceGroup_basic
--- PASS: TestAccComputeInstanceGroup_basic (123.64s)
=== RUN TestAccComputeInstanceGroup_update
--- PASS: TestAccComputeInstanceGroup_update (150.37s)
=== RUN TestAccComputeInstanceGroup_outOfOrderInstances
--- PASS: TestAccComputeInstanceGroup_outOfOrderInstances (103.71s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/google 377.737s
```
2017-06-02 22:15:10 +03:00
Alessandro Fael Garcia
97677c920b
docs/google: Add "list" to tags description ( #14975 )
...
The tags argument requires a list in order to work.
2017-06-01 02:19:10 +03:00
Riley Karson
2ca5b657cd
provider/google: Add CORS support for google_storage_bucket. ( #14695 )
2017-05-31 15:44:25 -04:00
Riley Karson
ddf6cde340
provider/google: Add CORS support for google_storage_bucket. ( #14695 )
2017-05-31 15:44:25 -04:00
David Radcliffe
fe0bf11965
google container_cluster master_auth should be optional ( #14630 )
2017-05-31 15:43:31 -04:00
David Radcliffe
ee09a26b95
google container_cluster master_auth should be optional ( #14630 )
2017-05-31 15:43:31 -04:00
Dana Hoffman
4bda7105c9
provider/google: use a mutex to prevent concurrent sql instance operations ( #14424 )
2017-05-31 15:19:27 -04:00
Alessandro Fael Garcia
71c008b5ac
docs/google: Add missing "Required" tags
...
This change updates the password and username fields in the Master Auth subheading to include the "Required" tag.
2017-05-30 13:44:39 -07:00
Sam Bashton
951efa991f
Add ability to import Google Compute persistent disks ( #14573 )
...
* Add ability to import Google Compute persistent disks
* Fix additional URL names
2017-05-30 14:16:12 +01:00
Paddy
0c11f37d11
Merge pull request #12411 from drebes/cloud_router
...
provider/google: Cloud router resource
2017-05-24 21:36:17 -07:00
Paddy
4a87910346
Merge pull request #12411 from drebes/cloud_router
...
provider/google: Cloud router resource
2017-05-24 21:36:17 -07:00
Paddy
1d123af1a6
Merge pull request #14643 from hashicorp/pr-8180
...
provider/google: New Datasource: Google Storage Object Signed URL (supersedes #8180 )
2017-05-24 16:46:14 -07:00
Paddy
4298cde7e5
Merge pull request #14643 from hashicorp/pr-8180
...
provider/google: New Datasource: Google Storage Object Signed URL (supersedes #8180 )
2017-05-24 16:46:14 -07:00
Riley Karson
205883d594
Change google_compute_target_pool's session_affinity field default to NONE. ( #14807 )
2017-05-24 16:24:45 -07:00
Paddy
490d86d291
Fix some style things, handle errors.
...
Fix a typo, follow our acceptance test naming guidelines, simplify some
logic, and handle an unhandled error.
2017-05-24 15:55:01 -07:00
Paddy
69a8011c89
Fix fmt.
2017-05-23 14:47:46 -07:00
Paddy
4baea4e612
Merge branch 'master' into paddy_gcp_detach_deleted_disks
2017-05-23 14:45:27 -07:00
Paddy
9686408b7b
Remove required env var, fix test names.
...
We no longer need to set an env var (yaaay!) and our test names use
camelCase not snake_case, though that confusion is understandable.
2017-05-23 14:28:06 -07:00
Paddy
6c190d2315
Merge commit '96a67766bf94fdba15f607a9f620cc7df3675a9b' into paddy_fix_12278_rebase
2017-05-23 14:11:38 -07:00
Thomas Poindessous
c886dadb4c
Corrected test for generating disk from a snapshot URI from another project
2017-05-22 23:36:53 +02:00
Riley Karson
8890759a21
Updated debug message in compute_firewall_migrate. ( #14743 )
2017-05-22 14:05:31 -07:00
Dana Hoffman
3808f5b1d5
provider/google: stop trying to set mysqlReplicaConfiguration on read ( #14373 )
2017-05-22 14:04:28 -07:00
Thomas Poindessous
1a729163ec
Added a test acceptance for the new functionality.
...
GOOGLE_COMPUTE_DISK_SNAPSHOT_URI must be set to a valid snapshot's uri like one of the output of
gcloud compute snapshots list --uri
GOOGLE_COMPUTE_DISK_SNAPSHOT_URI should be replaced by a proper snapshot made by TF (#11690 )
2017-05-22 22:51:31 +02:00
Thomas Poindessous
7e31db5cf5
Golint from Atom
2017-05-22 22:51:31 +02:00
Thomas Poindessous
acc0e9590a
Be more specific on the regexp used to detect URI
2017-05-22 22:51:31 +02:00
Thomas Poindessous
b1e96506e0
Enable use of URI for snapshot name
2017-05-22 22:51:30 +02:00
Dana Hoffman
da2aee461f
provider/google: add failover parameter to sql database instance ( #14336 )
...
* provider/google: add failover parameter to sql database instance
* provider/google: update sql database instance docs
2017-05-22 13:44:25 -07:00
Dana Hoffman
0a0d8eb076
provider/google: add failover parameter to sql database instance ( #14336 )
...
* provider/google: add failover parameter to sql database instance
* provider/google: update sql database instance docs
2017-05-22 13:44:25 -07:00
Riley Karson
9f1c31a843
provider/google: Add import support to google_sql_user ( #14457 )
...
* Support importing google_sql_user
* Updated documentation to reflect that passwords are not retrieved.
* Added additional documentation detailing use.
* Removed unneeded d.setId() line from GoogleSqlUser Read method.
* Changed an errors.New() call to fmt.Errorf().
* Migrate schemas of existing GoogleSqlUser resources.
* Remove explicitly setting 'id' property
* Added google_sql_user to importability page.
* Changed separator to '/' from '.' and updated tests + debug messages.
2017-05-22 13:43:10 -07:00
Riley Karson
c1ddeac868
provider/google: Add import support to google_sql_user ( #14457 )
...
* Support importing google_sql_user
* Updated documentation to reflect that passwords are not retrieved.
* Added additional documentation detailing use.
* Removed unneeded d.setId() line from GoogleSqlUser Read method.
* Changed an errors.New() call to fmt.Errorf().
* Migrate schemas of existing GoogleSqlUser resources.
* Remove explicitly setting 'id' property
* Added google_sql_user to importability page.
* Changed separator to '/' from '.' and updated tests + debug messages.
2017-05-22 13:43:10 -07:00
Riley Karson
72c63b0008
provider/google: Refactor google_storage_bucket tests ( #14694 )
2017-05-22 12:38:21 -07:00
smasue
5729c4ffbd
Missing short name in the service scope (Google compute instance) ( #14633 )
...
* Missing short name in the service scope (Google compute instance ). The missing short name is for Stackdriver Trace append.
* Missing short name in the service scope (Google compute instance ). The missing short name is for Stackdriver Trace readonly.
2017-05-22 12:21:59 -05:00
Roberto Jung Drebes
3ffa8f1b72
wip: review changes:
...
- test arguments
- set region, project in state
- fix import error messages
- get rid of peerFound
- linkDiffSuppress
2017-05-19 23:05:54 +02:00
Paddy
127283a858
provider/google: detach disks before deleting them.
...
When a `google_compute_disk` is attached to a `google_compute_instance`,
deleting can be tricky. GCP doesn't allow disks that are attached to
instances to be deleted. Normally, this is fine; the instance depends on
the disk, so by the time the disk is deleted, the instance should
already be gone.
However, some reports have cropped up (#8667 ) that deleting disks is
failing because they're still attached to instances. Though this
shouldn't happen, it appears it can happen under some unknown
conditions.
This PR adds logic that will attempt to detach disks from any instances
they're attached to before deleting the disks, adding another safeguard
that should prevent this behaviour.
2017-05-18 17:28:16 -07:00
Matt Robenolt
cc0b0144d4
provider/google: Add support for privateIpGoogleAccess on subnetworks ( #14234 )
2017-05-18 13:35:02 -07:00
Matt Robenolt
36aff9a2c1
provider/google: Add support for privateIpGoogleAccess on subnetworks ( #14234 )
2017-05-18 13:35:02 -07:00
clint shryock
2d67674fbd
provider/google: Update docs to match new default value
2017-05-18 15:10:52 -05:00
Clint
176aae79a0
Fix issue with GCP Cloud SQL Instance disk_autoresize
( #14582 )
...
* provider/google: Fix server/state diff with disk_autoresize
* provider/google: Default true for disk.auto_resize
For sql_database_instance , to match the new API default.
Also adds diff suppression func for autoresize on 1st gen instances
* fix typos
2017-05-18 15:09:01 -05:00
clint shryock
b0b1954db3
merge master
2017-05-18 13:56:55 -05:00
clint shryock
11ac5d4ff7
merge master
2017-05-18 13:56:55 -05:00
Paddy
cfdf597f9a
provider/google: remove deleted services field.
...
We removed the services field from the `google_project` resource, but it
lingered in the docs. This removes those out of date references to it.
2017-05-17 23:24:42 -07:00
Dana Hoffman
075fc44193
Add mechanism for listing services in project_services docs ( #14557 )
2017-05-17 20:41:45 +03:00
Riley Karson
e803624a3c
provider/google: Google Cloud content-based load balancing example. ( #14448 )
2017-05-16 13:16:27 -07:00
Riley Karson
083dd34547
provider/google: Fix the health check default values for http and https so they match the expected value in the documentation and specific health check instances. ( #14441 )
2017-05-15 12:59:44 -07:00
emily
74fb8df60d
Make google resource storage bucket importable ( #14455 )
2017-05-15 19:38:32 +03:00
Patrick Decat
28dbf4cbf5
Typo: resotred => restored ( #14494 )
2017-05-15 14:35:18 +02:00
Daniel Schierbeck
0b161db410
Add a url
attribute to google_storage_bucket
( #14393 )
...
* Add a `url` attribute to `google_storage_bucket`
* Document the `url` attribute
2017-05-11 15:30:06 +03:00
Daniel Schierbeck
cb4236515d
Add a url
attribute to google_storage_bucket
( #14393 )
...
* Add a `url` attribute to `google_storage_bucket`
* Document the `url` attribute
2017-05-11 15:30:06 +03:00
Paddy
f034eb533c
Merge pull request #14280 from hashicorp/paddy_container_versions
...
providers/google: add google_container_versions data source.
2017-05-10 15:50:16 -07:00
Paddy
c33e26af70
Merge pull request #14280 from hashicorp/paddy_container_versions
...
providers/google: add google_container_versions data source.
2017-05-10 15:50:16 -07:00