Commit Graph

46 Commits

Author SHA1 Message Date
Dana Hoffman
5e04661a5a providers/google: Add support for encrypting a disk (#11167)
* providers/google: add support for encrypting a disk

* providers/google: Add docs for encrypting disks

* providers/google: CSEK small fixes: sensitive params and mismatched state files
2017-01-18 13:49:48 +00:00
stack72
1aacd62faf provider/google: Moving the XPN EnvVar check into provider_test.go to stop failed build 2016-12-13 19:29:23 +00:00
stack72
a40d538584 Merge branch 'google-xpn' of https://github.com/danawillow/terraform 2016-12-13 19:15:54 +00:00
Aditya Anchuri
2c43213d1c Added create timeout for compute images and instances
- Prevents the corresponding terraform resource from timing out when the
  images or instances take longer than the default of 4 minutes to be
  created
2016-11-12 18:30:02 -08:00
Paddy
0e2c4da3e2 provider/google: throw an error for invalid disks
When configuring an instance's attached disk, if the attached disk has
both the disk and type attributes set, it would previously cause
terraform to crash with a nil pointer exception. The root cause was that
we only instantiate the InitializeParams property of the disk if its
disk attribute isn't set, and we try to write to the InitializeParams
property when the type attribute is set. So setting both caused the
InitializeParams property to not be initialized, then written to.

Now we throw an error explaining that the configuration can't have both
the disk and the type set.

Fixes #6495.
2016-11-07 16:11:00 -08:00
Christoph Blecker
99b165ab54 Search configured project image families (#9243)
* Search configured project image families

* Clarify documentation around google_compute_instance image families

* Acceptance test for private instance family creation
2016-11-01 21:00:12 +00:00
Dana Hoffman
4a545d3f2c style fix 2016-10-27 11:25:28 -07:00
Dana Hoffman
0c026275e3 Add subnetwork_project field to allow for XPN in GCE instances 2016-10-27 08:25:58 -07:00
Christoph Blecker
be6b7c95b4 Update Google TestAcc to use Debian 8 images 2016-08-18 19:31:45 -07:00
Christoph Blecker
0c5ec16c30 Add support for using GCP Image Family names. (#8083) 2016-08-15 22:29:58 +01:00
Evan Brown
5254774342 provider/google: Support static private IP addresses (#6310)
* provider/google: Support static private IP addresses

The private address of an instance's network interface may now be specified.
If no value is provided, an address will be chosen by Google Compute Engine
and that value will be read into Terraform state.

* docs: GCE private static IP address information
2016-08-08 13:01:31 +12:00
Evan Brown
3ca0bea7c0 providers/google: Don't fail deleting disks that don't exist.
Addresses #5942
2016-05-16 11:57:04 -07:00
Bill Fumerola
ef0982895d provider/google: use non-deprecated image in acceptance tests, documentation 2016-03-26 09:55:28 -07:00
Matt Morrison
b5c5cbd5d4 Add more acceptance tests, and fix some test cases 2016-02-18 08:37:58 -08:00
Lars Wander
54eebc6084 provider/google: limit hardcoded test resource names 2016-01-05 19:49:06 -05:00
Lars Wander
4c61acc8dc provider/google: remove conflicting names from acceptance tests 2016-01-05 16:57:24 -05:00
Lars Wander
17e36a2b84 provider/google: Added scheduling block to compute_instance 2015-10-26 16:16:06 -04:00
Lars Wander
4182880ca5 Provider GCE, fixed metadata state update bug 2015-10-14 12:47:54 -05:00
Panagiotis Moustafellos
ad6d7ea3e2 removed extra parentheses 2015-10-08 15:48:04 +03:00
Clint Shryock
a9f813a93b provider/google: Misc. cleanups for tests to pass 2015-08-31 09:06:25 -05:00
Dave Cunningham
a4037a0f61 Add ForceNew metadata_startup_script field 2015-07-01 21:24:34 -04:00
Dave Cunningham
27319e1366 Allow local SSDs, Fix #1088 2015-05-11 21:40:37 -04:00
Dave Cunningham
b39460bd62 Use a set for service account scopes. Fix #1759 2015-04-30 21:21:21 -04:00
Paul Hinze
7dab6a450a Merge pull request #1517 from hashicorp/f-simplify-google-instance
google: simplify instance metadata schema
2015-04-15 11:48:37 -05:00
Paul Hinze
a985b68edb google: simplify instance metadata schema
It doesn't need to be a List of Maps, it can just be a Map.

We're also safe to remove a previous workaround I stuck in there.

The config parsing is equivalent between a list of maps and a plain map,
so we just need a state migration to make this backwards compatible.
2015-04-15 11:01:35 -05:00
Paul Hinze
29c83231ce core: avoid diff mismatch on NewRemoved fields during -/+
fixes #1508

In a DESTROY/CREATE scenario, the plan diff will be run against the
state of the old instance, while the apply diff will be run against an
empty state (because the state is cleared when the destroy node does its
thing.)

For complex attributes, this can result in keys that seem to disappear
between the two diffs, when in reality everything is working just fine.

Same() needs to take into account this scenario by analyzing NewRemoved
and treating as "Same" a diff that does indeed have that key removed.
2015-04-14 17:23:30 -05:00
David Watson
56c5854e5b Update Google API import to point to the new location. 2015-03-18 17:10:39 +00:00
Dave Cunningham
95943e4a3f Merge branch 'master' into gcp_image 2015-02-10 03:25:45 -05:00
Dave Cunningham
f307417694 Deprecated 'network', introduce 'network_interface' 2015-02-06 03:21:22 -05:00
Dave Cunningham
d9add1b513 Allow specifying project or full URL when specifying image 2015-01-29 20:00:02 -05:00
Sander van Harmelen
0abe48fa03 Fixing the acc tests
I do wonder when these tests where last run successfully… Must be quite
some time ago considering what I needed to fix in here 😉
2014-11-20 14:30:02 +01:00
Mitchell Hashimoto
08e7a5bd85 Merge pull request #372 from jgoldschrafe/feature-google-compute-disk-types
Configurable disk types for GCE
2014-10-08 10:50:38 -07:00
Jeff Goldschrafe
ac46b83119 Support IP forwarding on GCE instances
This change exposes the CanIpForward property of the Instance, allowing
users to create instances that are allowed to function as NAT or VPN
gateways.
2014-10-07 12:28:20 -04:00
Jeff Goldschrafe
69c09c1cb7 Configurable disk types for GCE
Supports configuring the disk type for Google Compute Engine disk
resources. Both `google_compute_disk` and `google_compute_instance`
disk types are supported.

Resolves #351.
2014-10-07 01:40:20 -04:00
Mitchell Hashimoto
51bfd6f6ef providers/google: tests passing, compiling 2014-09-16 17:17:09 -07:00
Mitchell Hashimoto
6fa0b65563 fmt 2014-09-09 13:43:03 -07:00
Dainis Tillers
1a6fc051ba Added - flag to set whether disk needs to be delete or not when instance terminates 2014-09-02 16:52:49 +03:00
Mitchell Hashimoto
9b430b911e providers/google: compute_instance supports updating tags 2014-08-26 13:52:18 -07:00
Mitchell Hashimoto
fcba6626e4 providers/google: compute_instance supports updating metadata 2014-08-26 13:48:49 -07:00
Mitchell Hashimoto
f4113ecfda providers/google: support disks coming from other disks 2014-08-25 21:35:23 -07:00
Mitchell Hashimoto
7044ce907a providers/google: can assign IP to instance 2014-08-25 15:47:21 -07:00
Mitchell Hashimoto
0f0c34b674 providers/google: compute_instance supports metadata 2014-08-25 15:25:45 -07:00
Mitchell Hashimoto
d42c75315c providers/google: support tags on compute_instance 2014-08-25 15:10:30 -07:00
Mitchell Hashimoto
25e598a153 providers/google: compute_instance 2014-08-25 14:57:17 -07:00
Mitchell Hashimoto
376d1d6083 providers/google: google_compute_address 2014-08-25 12:55:08 -07:00
Mitchell Hashimoto
80e2023e6b providers/google: first pass 2014-08-25 11:48:20 -07:00