Commit Graph

20 Commits

Author SHA1 Message Date
Dana Hoffman
da2a1b5659 provider/google: Handle all 404 checks in read functions via the new function 2017-05-10 14:50:19 +03:00
James Nugent
c2dc0479a7 provider/google: Remove redundant type declaration
This commit cleans up the google_compute_firewall resource to the Go
1.5+ style of not requiring map values to declare their type if they can
be inferred.
2016-08-23 10:40:33 +02:00
James Nugent
ba76ac0788 provider/google: Hook in state migration function
As part of Terraform 0.7.1 it was observed in issue #8345 that the state
migration for google_compute_firewall did not appear to be running,
causing a panic when an uninitialized member was read. This commit hooks
up the state migration function (which _was_ independently unit tested
but was not actually in place).

There is currently no good test framework for this, I will address this
issue in a future RFC.
2016-08-23 10:40:33 +02:00
Noah Webb
8429479c89 provider/google: Support Import of 'google_compute_firewall' 2016-08-16 17:04:30 -04:00
Igor Wiedler
a3188d0885 [provider/google] Use resource-specific project when waiting for creation
Creating most google cloud resources uses the compute_operation to
wait for the creation to complete. However, the computeOperationWait*
functions always uses the global `config.Project`, instead of the resource-
specific one.

This means that creating resource in a project other than the main one
fails with a 404 on the operation resource.

This patch uses the project from google_compute_instance instead of the
global one.
2016-06-10 11:55:21 +02:00
Seth Vargo
e2c5e9a1d5 Update documentation to include new "project" attribute
This commit also normalizes the format we display attributes.
2016-04-10 17:34:15 -04:00
Seth Vargo
9756d62378 Accept "project" as an attribute to GCP resources
This is the first step in removing the config dependency on "project".
This change is backwards-compatible because the value for this new
attribute defaults to the value from the provider.
2016-04-10 13:01:24 -04:00
Trevor Pounds
a77d60e006 Use built-in schema.HashString. 2016-02-07 16:29:34 -08:00
Lars Wander
af69d1cd76 provider/google: Updated Read(..) behavior to handle deleted resources 2016-01-07 10:39:04 -05:00
Lars Wander
05503f4f9c Refactored wait code to delete duplicated code & share functionality 2015-09-24 16:30:12 -04:00
David Watson
56c5854e5b Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
David Watson
ddb8b21f3c Add SelfLink field to GCE firewall resource. 2015-02-10 11:14:15 +00:00
Julien Vey
8325c5f568 provider/gce: Add description in firewall resource 2015-02-06 13:33:02 +01:00
Mitchell Hashimoto
46eaef750d fmt 2014-09-28 11:51:49 -07:00
Jeff Goldschrafe
97370fdac1 google_compute_firewall: Support target tags 2014-09-26 01:15:31 -04:00
Mitchell Hashimoto
6cf9975f46 providers/google: compute_firewall partial state 2014-08-26 20:33:53 -07:00
Mitchell Hashimoto
6cb8517087 providers/google: compute_firewall update 2014-08-26 12:50:08 -07:00
Mitchell Hashimoto
36d4ec4fd4 providers/google: on refresh, treat 404 as resource gone 2014-08-25 22:49:14 -07:00
Mitchell Hashimoto
d4c23e9e85 providers/google: check operations for errors 2014-08-25 22:44:27 -07:00
Mitchell Hashimoto
18e06f907f providers/google: compute_firewall 2014-08-25 22:09:38 -07:00