Commit Graph

241 Commits

Author SHA1 Message Date
Patrick Decat
f4a3e9e78c Doc: google_compute_health_check resource has no type attribute (#12646)
The `google_compute_health_check` resource has no `type` attribute.

cf. https://www.terraform.io/docs/providers/google/r/compute_health_check.html
2017-03-13 19:53:25 +02:00
Thomas Poindessous
d7454b8177 Documentation for the new resource : google_compute_snapshot 2017-03-13 14:13:38 +01:00
Patrick Decat
074f33c93f Doc: Google Global Forwarding have their own documentation (#12528) 2017-03-08 20:17:18 +02:00
Paddy
d1e103b4d2 provider/google: add migration notes for projects
Update the docs for `google_project` with @zachgersh's suggestions
(#11895) to properly communicate the changes that took place in 0.8.5.
While they don't break any current configs or state, the new behaviour
should be called out for people who were using the old behaviour and are
adding new projects to their configs/state.

I also took this opportunity to update google_project_iam_policy with a
note to users letting them know that there be dragons.
2017-02-24 00:56:05 -08:00
Evan Brown
c7632cdf2e providers/google: google_project supports billing account (#11653)
* Vendor google.golang.org/api/cloudbilling/v1

* providers/google: Add cloudbilling client

* providers/google: google_project supports billing account

This change allows a Terraform user to set and update the billing
account associated with their project.

* providers/google: Testing project billing account

This change adds optional acceptance tests for project billing accounts.
GOOGLE_PROJECT_BILLING_ACCOUNT and GOOGLE_PROJECT_BILLING_ACCOUNT_2
must be set in the environment for the tests to run; otherwise, they
will be skipped.

Also includes a few code cleanups per review.

* providers/google: Improve project billing error message
2017-02-20 19:32:24 +02:00
George Christou
06fa75423e website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00
Patrick Decat
fc78bd934d Update google_sql_user example as password is a required argument (#12053) 2017-02-18 16:16:14 +02:00
Paddy
24393a64ea Merge pull request #12044 from sbadia/gcs_storage_class
doc: gcs - Update storage_class documentation and tests
2017-02-17 16:13:29 -08:00
Patrick Decat
d9c31525dc google_sql_database_instance: pricing_plan only applies to first generation instances (#12054)
As stated in the second generation pricing documentation:

> Second Generation pricing is composed of the following charges:
> 
> Instance pricing
> Storage pricing
> Network pricing
> There is no choice of pricing plan.

cf. https://cloud.google.com/sql/pricing#2nd-gen-pricing
2017-02-18 01:38:38 +02:00
Patrick Decat
11c56cfd5e google_sql_database_instance name cannot be reused for one week, not two months (#12055)
According to the referenced documentation, it is one week, not two months:

> You cannot reuse an instance name for up to a week after you have deleted an instance.

cf. https://cloud.google.com/sql/docs/mysql/delete-instance
2017-02-18 01:37:58 +02:00
Mike Fowler
c866f8bf6c provider/google-cloud: Add maintenance window (#12042)
* provider/google-cloud: Add maintenance window

Allows specification of the `maintenance_window` within the `settings`
block. This controls when Google will restart a database in order to
apply updates. It is also possible to select an `update_track` to
relatively control updating between instances in the same project.

* Adjustments as suggested in code review.
2017-02-18 01:33:47 +02:00
Sebastien Badia
051423ee28 doc: gcs - Update storage_class documentation and tests
`STANDARD` storage_class is now replaced by `MULTI_REGIONAL` depending
the bucket location. Same for `DURABLE_REDUCED_AVAILABILITY` replaced
by `REGIONAL`.

refs: https://cloud.google.com/storage/docs/storage-classes#standard
2017-02-17 15:59:25 +01:00
Matthew Frahry
7b053a8e58 Update storage_bucket_acl.html.markdown 2017-02-03 09:26:39 -07:00
Matthew Frahry
c69a8988e7 Update storage_bucket_acl.html.markdown
Removing `default_acl` since Terraform doesn't manage it anymore
2017-02-03 09:09:03 -07:00
Dana Hoffman
2ffc1a9f1f Merge pull request #11590 from evandbrown/google-cloud-sql-pw
providers/google: No default root user for SQL
2017-02-01 15:43:23 -08:00
Dana Hoffman
696093659d Merge pull request #11020 from drebes/remote_traffic_selector
provider/google: remote_traffic_selector for google_compute_vpn_tunnel
2017-02-01 13:04:06 -08:00
Matthew Frahry
c15f8f0fc5 Merge pull request #11583 from hashicorp/UpdateMachineDoc
Update compute_instance.html.markdown
2017-02-01 09:32:24 -07:00
Mike Fowler
2806974991 provider/google-cloud: Add second generation disk specification options (#11571)
* Add second generation disk specification options.

* Adjust test check to match resource read behaviour.
2017-02-01 16:20:31 +00:00
Evan Brown
aca0825115 providers/google: No default root user for SQL
Cloud SQL Gen 2 instances come with a default 'root'@'%' user on
creation. This change automatically deletes that user after creation. A
Terraform user must use the google_sql_user to create a user with
appropriate host and password.
2017-01-31 22:21:11 -08:00
Matthew Frahry
a4900da465 Update compute_instance.html.markdown
Putting all required attributes next to each other for readability and separating deprecated attributes
2017-01-31 16:45:13 -07:00
Christoph Blecker
7c0f207b69 ip_address is an array and requires the instance number (#11389) 2017-01-29 16:36:57 +00:00
Roberto Jung Drebes
74d7af5506 provider/google: acceptance tests for traffic selectors 2017-01-28 00:55:17 +01:00
Roberto Jung Drebes
eec0772512 provider/google: remote_traffic_selector for google_compute_vpn_tunnel 2017-01-28 00:09:58 +01:00
Dave Walter
1be448ed77 Remove duplicate google_project.project_id argument reference. (#11449)
Signed-off-by: Kevin Kelani <kkelani@pivotal.io>
2017-01-27 04:16:27 +02:00
Evan Brown
622783c762 providers/google: Support managing projects
Add support for creating, updating, and deleting projects, as well as
their enabled services and their IAM policies.

Various concessions were made for backwards compatibility, and will be
removed in 0.9 or 0.10.
2017-01-25 14:59:50 -08:00
tpoindessous
6cb049139c Additionnal information for machine type (#11288)
Additionnal information for machine type, which is the new name of "tiers".
2017-01-19 14:41:06 +00:00
Zach Gershman
b82d724f85 removes region param from google_compute_backend_service (#10903)
* removes region param from backend_service

- this param was not being used in this service
- you need a regional_backend_service if you want to pass this

* deprecated region instead of outright removing

* put session affinity formatting back
2017-01-18 23:10:43 +00:00
Dana Hoffman
2f1f73969f Merge pull request #11018 from unguiculus/feature/additional_zones
provider/google: [GKE] Allow additional zones to be configured
2017-01-18 10:10:13 -08:00
Dana Hoffman
ce902c7c8e Merge pull request #11228 from cblecker/rbs-sessionaffinity
provider/google: Add support for session_affinity to google_compute_region_backend_service
2017-01-18 10:06:02 -08:00
Dana Hoffman
7974fd1a41 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
Christoph Blecker
12787e985e Add support for session_affinity to google_compute_region_backend_service 2017-01-17 16:32:58 -08:00
Christoph Blecker
1b977f79c2 Fix formatting on google_compute_backend_service page 2017-01-16 13:42:55 -08:00
Reinhard Nägele
40e22d98e5 Merge remote-tracking branch 'upstream' into feature/additional_zones 2017-01-13 16:44:09 +01:00
zbikmarc
b5333fe9d9 providers/google: Add subnetwork_project field to enable cross-project networking in instance templates (#11110)
* Add subnetwork_project field to allow for XPN in GCE instance templates

* Missing os import

* Removing unneeded check

* fix formatting

* Add subnetwork_project to read
2017-01-12 16:05:13 +02:00
Reinhard Nägele
6e912ff336 [GKE] Allow additional zones to be configured 2017-01-04 07:37:57 +01:00
Reinhard Nägele
0f1a85d4d8 GKE: Fix docs for node_version (#10856) 2016-12-20 14:06:19 +00:00
Daniel Bryant
4c41dbced1 Make clearer that ipv4_range is deprecated (#10749)
Removed example code usage that demonstrated deprecated ipv4_range argument, and made clearer that argument is deprecated
2016-12-15 12:37:13 +00:00
stack72
55ebfd82de Merge branch 'google-xpn' of https://github.com/danawillow/terraform 2016-12-13 19:15:54 +00:00
Patrick Decat
590ae43c5d Fix 404 on API link (#10693) 2016-12-13 10:12:49 +00:00
Christoph Blecker
ada3e5f3b6 Add support for name_prefix to google_compute_ssl_certificate 2016-12-12 15:57:58 -08:00
Paddy
e4d84578ad Merge pull request #10453 from danawillow/google-ilb
providers/google: Add support for Internal Load Balancing
2016-12-12 09:47:20 -08:00
Dana Hoffman
cbe0a2078c Update docs 2016-12-08 18:05:48 -08:00
Dana Hoffman
94c58fbfc2 add links to docs on region backend service 2016-12-08 11:04:01 -08:00
Kian Mohageri
90dafd2ae9 Doc spelling: referencd -> referenced (#10559)
Small spelling correction in the Google Project documentation.
2016-12-07 00:41:20 +01:00
Paddy
5b36f2f0e3 Fix instance/template metadata support
Update our instance template to include metadata_startup_script, to
match our instance resource. Also, we've resolved the diff errors around
metadata.startup-script, and people want to use that to create startup
scripts that don't force a restart when they're changed, so let's stop
disallowing it.

Also, we had a bunch of calls to `schema.ResourceData.Set` that ignored
the errors, so I added error handling for those calls. It's mostly
bundled with this code because I couldn't be sure whether it was the
root of bugs or not, so I took care of it while addressing the startup
script issue.
2016-12-05 02:45:28 -08:00
Dana Hoffman
242102e0e0 Actually add documentation for Internal Load Balancing 2016-12-01 12:27:37 -08:00
Dana Hoffman
117f5da06f Add documentation for Internal Load Balancing 2016-12-01 12:27:36 -08:00
Benjamin Pineau
9e26fb8bdc provider/google: allow session affinity for compute_backend_service
Google's Backend Services gives users control over the session affinity modes.
Let's allow Terraform users to leverage this option.
We don't change the default value ("NONE", as provided by Google).
2016-11-30 23:50:50 +01:00
Evan Brown
771181a189 Merge pull request #10117 from cblecker/f-gke-node-scopes
provider/google: Add support for scope aliases to google_container_cluster
2016-11-18 20:19:26 -08:00
Evan Brown
cc85aa2853 Merge pull request #10081 from aditya87/google_compute_image_timeout
Added create timeout for compute images and instances
2016-11-17 12:56:02 -08:00
Evan Brown
eea2b7461c Resolve review feedback 2016-11-17 09:49:22 -08:00
Christoph Blecker
0058a5b37e Add support for scope aliases to google_container_cluster 2016-11-14 15:50:24 -08:00
Christoph Blecker
1573b0a64b Clean up google_container_cluster docs 2016-11-14 15:49:43 -08:00
Evan Brown
8137551789 Fix spacing inconsistencies 2016-11-14 11:12:55 -08:00
Evan Brown
ff2f519d6a providers/google: Create and delete Service Accounts 2016-11-13 20:47:20 -08:00
Aditya Anchuri
7053606e93 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
Patrick Decat
824dbd3a18 Fix deprecation warnings for automatic_restart and on_host_maintenance parameters (#9909)
Fix 
Warnings:

```
  * google_compute_instance_template.nat: "automatic_restart": [DEPRECATED] Please use `scheduling.automatic_restart` instead
  * google_compute_instance_template.nat: "on_host_maintenance": [DEPRECATED] Please use `scheduling.on_host_maintenance` instead
```
2016-11-07 10:42:38 +00:00
Christoph Blecker
ab9a002e09 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
Christoph Blecker
9598afb20b Add support for default-internet-gateway alias for google_compute_route (#9676) 2016-11-01 13:45:36 +00:00
Christoph Blecker
5ac73bfd16 Add support for using source_disk to google_compute_image (#9614) 2016-11-01 10:32:47 +00:00
Dan Wendorf
ad6d146203 provider/google Support MySQL 5.7 instances (#9673)
* provider/google Document MySQL versions for second generation instances

Google Cloud SQL has first-gen and second-gen instances with different
supported versions of MySQL.

* provider/google Increase SQL Admin operation timeout to 10 minutes

Creating SQL instances for MySQL 5.7 can take over 7 minutes,
so the timeout needs to be increased to allow the
google_sql_database_instance resource to successfully create.
2016-10-28 14:41:03 +02:00
Dan Wendorf
cad67fe2ea provider/google Change default MySQL instance version to 5.6 (#9674)
The Google Cloud SQL API defaults to 5.6, and 5.6 is the only version avaiable
to both first- and second-generation Cloud SQL instances.
2016-10-28 00:11:08 +01:00
Dana Hoffman
3370e4fbcb Add section in docs for subnetwork_project 2016-10-27 10:22:01 -07:00
Walter Dolce
3c0cc4ba9c Fix link pointing to GCE docs
This partially fixes #9522. Not sure about the first link reported.
2016-10-22 18:34:59 +01:00
Michał Michałowski
61d0956c6a Config should reflect description
Example addons_config was supposed to show how to disable addons (http_load_balancing and horizontal_pod_autoscaling), but it was enabling them instead.
2016-10-11 10:14:27 +02:00
Evan Brown
81c3c048a2 Merge pull request #8977 from sl1pm4t/b-gcs-storage-class
provider/google: Add support for GCS StorageClass
2016-09-24 21:13:17 -07:00
Sean Chittenden
65a7ed87c2 Whitespace nit. 2016-09-23 10:59:27 -07:00
Matt Morrison
7adea2f0f3 Fix documentation 2016-09-22 07:49:50 +12:00
Matt Morrison
fa31b6d207 Add support for GCS StorageClass
Fixes: #7417
2016-09-22 07:46:35 +12:00
Evan Brown
34edaf56d6 providers/google: Add documentation for google_iam_policy resource 2016-09-07 13:35:33 -07:00
Evan Brown
e0289a462e providers/google: Fix VPN Tunnel acceptance test
This fix changes acceptance tests for VPN tunnel to use the correct ports (UDP
500 and 4500). It also changes the documentation to demonstrate using these
port single ports in a `port_range` field.
2016-09-05 12:34:40 -07:00
Matt Morrison
44bb890f57 Make network attribute more consistent.
Some google resources required network be refernced by resource URL (aka self_link), while others required network name.
This change allows either to be supplied.

DRY it out, and add a fix for #5552.
2016-09-05 08:02:54 +12:00
Sarah Zelechoski
f2710cf1ba Allow custom Compute Engine service account 2016-08-23 17:04:13 -04:00
Christoph Blecker
a0886decc3 Update docs to use GCP Image Families 2016-08-18 17:23:15 -07:00
Lars Wander
0a6a76a86d Merge pull request #8147 from nwwebb/import-instance-template
provider/google: Support Import of 'google_compute_instance_template'
2016-08-18 10:30:46 -04:00
kawa
73b246e9b5 provider/google: Fix typo in document. auto_create_subnets -> auto_create_subnetworks (#8250) 2016-08-17 07:50:05 +01:00
Christoph Blecker
6737e59577 Add support for using GCP Image Family names. (#8083) 2016-08-15 22:29:58 +01:00
Noah Webb
87fe233ae8 provider/google: Support Import of 'google_compute_instance_template' 2016-08-15 10:03:31 -04:00
Evan Brown
a21fc31e00 providers/google: Add google_compute_image resource (#7960)
* providers/google: Add google_compute_image resource

This change introduces the google_compute_image resource, which allows
Terraform users to create a bootable VM image from a raw disk tarball
stored in Google Cloud Storage. The google_compute_image resource
may be referenced as a boot image for a google_compute_instance.

* providers/google: Support family property in google_compute_image

* provider/google: Idiomatic checking for presence of config val

* vendor: Update Google client libraries
2016-08-12 12:35:33 +10:00
Evan Brown
68a3b283e3 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
9f1f0b4aff providers/google: Allow custom Compute Engine service account
This commit allows an operator to specify the e-mail address of a service
account to use with a Google Compute Engine instance. If no service account
e-mail is provided, the default service account is used.

Closes #7985
2016-08-04 19:25:28 -07:00
Evan Brown
dc6ba4a8c7 Merge pull request #7852 from gaker/google-provider-backend-cdn
google_compute_backend_service "enable_cdn"
2016-08-03 20:11:54 -07:00
Rasty Turek
c2e14a7da4 typo 2016-08-03 13:44:52 -07:00
Greg Aker
45b78ab468 Add enable_cdn to google_compute_backend_service.
Add the ability to add/remove the Cloud CDN configuration
option on a backend service.
2016-07-28 15:38:09 -05:00
Steven Wirges
895465d9c3 Updated compute_address docs
Added address to attribute ref
2016-07-28 17:08:06 +02:00
Dave Cunningham
71008edf91 Fix address docs in gce instance (#6639)
@evandbrown @lwander
2016-05-13 00:51:20 +01:00
Evan Brown
665c4fff2a providers/google: support optionial uuid naming for Instance Template (#6604)
Auto-generating an Instance Template name (or just its suffix) allows the
create_before_destroy lifecycle option to function correctly on the
Instance Template resource. This in turn allows Instance Group Managers
to be updated without being destroyed.
2016-05-11 22:54:47 +01:00
Evan Brown
9aaa5b3141 Update docs and fix computed container settings 2016-04-14 16:33:52 -07:00
Seth Vargo
9da0d13c73 Update documentation to include new "project" attribute
This commit also normalizes the format we display attributes.
2016-04-10 17:34:15 -04:00
Sebastien Badia
9e5f25a922 docs/google: Update links, fix syntax errors and remove whitespaces 2016-03-31 12:40:04 +02:00
Bill Fumerola
4aa7bbc92e provider/google: use non-deprecated image in acceptance tests, documentation 2016-03-26 09:55:28 -07:00
Bill Fumerola
57004b8d54 Correct markdown for google_compute_instance_group and attach to index 2016-03-21 10:29:59 -07:00
James Nugent
57202f3c70 Merge pull request #5428 from shaneog/google_dns_managed_zone
description is now a required field for google_dns_managed_zone
2016-03-19 17:06:13 +00:00
Pradeep Chhetri
2f78e00329 Updated google instance docs with custom instance type 2016-03-13 10:23:52 +00:00
Lars Wander
5b5f55fa84 provider/google: Mark next_hop_network as read only. 2016-03-10 13:58:09 -05:00
Derek Goss
949c384171 Added disk_size_gb documentation to resource "google_compute_instance_template"
This was missing in the docs yet was implemented in Terraform. See line 81 in https://github.com/hashicorp/terraform/blob/master/builtin/providers/google/resource_compute_instance_template.go
2016-03-06 21:44:55 -05:00
Shane O'Grady
1696535082 description is now a required field for google_dns_managed_zone
The description field for a managed-zone is now a required field when using the Cloud API.
This commit defaults the field to use the text "Managed by Terraform" to minimize required boilerplate for Terraform users.

Ref: https://cloud.google.com/sdk/gcloud/reference/dns/managed-zones/create
2016-03-02 17:23:11 -03:00
Lars Wander
a20bc2fabc Merge pull request #4087 from ajcrowe/google-instance_groups
provider/google: Support for unmanaged instance groups (google_compute_instance_group)
2016-02-26 15:33:08 -05:00
Alex Crowe
b057c59430 Added google_compute_instance_group resource 2016-02-26 18:41:35 +00:00
James Nugent
dcb2ebbb2a provider/google: Document schema conflict in network 2016-02-22 13:15:02 -05:00