Commit Graph

1003 Commits

Author SHA1 Message Date
thomas
b3a22d0a7e Fix the description of the compute instance group as it is targeting unmanaged instances (#713) 2017-11-09 14:20:40 -08:00
Konrad Rotkiewicz
a7c8d0469a Add import support for ssl certificate, http/s proxy and url map (#678) 2017-11-09 10:16:57 -08:00
Vincent Roseberry
ff184b8d67
Add support to google_compute_target_pool for health checks self_link (#702)
- Accepts self_link in addition of health check name
- Removes the need for an API call to generate the self link
- Improves the documentation to mention that only the legacy google_compute_http_health_check is supported. This will prevent our user from being stuck like mentioned here: #300.
- Adds a MaxItems:1 in the schema. You can't have more than one. The API will fail. The official docs also says so.
- Adds a check to the acceptance test to ensure the health checks are properly setup.
2017-11-08 09:11:17 -08:00
Paddy
8b2486cd15
Merge pull request #359 from terraform-providers/paddy_95_dns_ns
dns: Add special handling for ns records.
2017-11-07 16:46:38 -08:00
Michael Bannister
12060f9f3d Add support for maintenance window on google_container_cluster (#670)
* Add support for maintenance window on google_container_cluster (#526)

* Address review comments

- Set ForceNew: true on the schema element daily_maintenance_window
- Correct resource name in acceptance test
- Correct documentation of resource attribute maintenance_policy.0.daily_maintenance_window.0.duration
2017-11-07 15:42:11 -08:00
Dana Hoffman
10e4f68441
Add new google_project_service resource for fine-grained service control. (#668)
* add new project service resource; add retry logic for enable/disable

* docs for google_project_service

* add project into the id
2017-11-07 15:19:57 -08:00
Patrick Decat
af0a22fbfb Make google_logging_project_sink resource importable (#688) 2017-11-07 14:40:22 -08:00
Nic Cope
20fc7cf077 Give addresses beta support, add internal addresses (#594) 2017-11-07 13:38:26 -08:00
Nic Cope
96db217168 Add secondary range support to google_compute_subnetwork data source (#687)
..and throw in project and region while we're at it.
2017-11-06 11:19:46 -08:00
thomas
0ffa93802e Fix the info about the default credentials in the provider page (#689) 2017-11-06 10:53:52 -08:00
Dana Hoffman
4a499b2f7d
Add support for source/target service accounts to google_compute_firewall (#681)
* add source/target service accounts to firewalls

* firewall service account docs
2017-11-06 09:34:48 -08:00
Tony Li
7507a2954d fix link format (#673) 2017-11-03 09:45:48 -07:00
Mioi Hanaoka
c551cb9585 fixing example of google_storage_object_acl (#642)
* fixing example of google_storage_object_acl

some of the resource names seem to be incorrect. fixing to reflect
the actual resource names in the example.

* fixup

forgot to add `.name` here.
2017-11-02 10:50:54 -07:00
David Quarles
ca7551c8c5 Add support for master authorized networks in google_container_cluster (#626)
* Add support for master authorized networks in `google_container_cluster`

* [review] remove enabled flag / restructure schema

- remove `google_container_cluster.master_authorized_networks_config.enabled`
- add `display_name` and restructure schema as follows:
    master_authorized_networks_config {
        cidr_blocks {
            cidr_block   = "0.0.0.0/0"
            display_name = "foo"
        }
    }
- amend tests

* [review] add test for validateRFC1918Network, fix acc test
2017-11-02 10:38:20 -07:00
Aeneas
8cf605f23e Document that GKE master_auth key is an array (#617)
* Document that GKE master_auth key is an array

This resolves https://github.com/hashicorp/terraform/issues/16417 and is a follow up to https://github.com/hashicorp/terraform/issues/14073

* Update container_cluster.html.markdown

* Update container_cluster.html.markdown

* Update container_cluster.html.markdown
2017-11-02 10:11:12 -07:00
Henry Bell
026d76616d Add support for Kubernetes alpha features (#646)
* Add support for Kubernetes alpha features

* Add tests for support of Kubernetes alpha features

* Fix dodgy copy and paste operations

* Add documentation
2017-10-31 16:38:18 -07:00
Paddy
c882a77db6
Merge pull request #399 from terraform-providers/vendor-tf-0.10.3
Remove 'id' fields from schemas
2017-10-31 16:10:45 -07:00
Vincent Roseberry
0332208bc9
Add import support to global forwarding rule (#653) 2017-10-31 11:28:55 -07:00
Paddy
ac73bebb15
Rename instead of removing.
Rename all ID fields to {resource_noun}_id instead of removing them
outright. This means people can still get at the info.

Leave project's id deleted. It has been marked as Removed for months.
I'm fine with cleaning it up before 1.0.0.

Also, update website docs.
2017-10-31 16:27:37 +00:00
Nicki Watt
96ac8fc8a4 Add google_dataproc_cluster resource (#252)
* Add google_dataproc_cluster resource

* Add google_dataproc_cluster tests

* Add google_dataproc_cluster docs

* Removed google_dataproc_job ref (to be added in separate PR)

* Added delete_autogen_bucket attribute

* Refactored / simplified wait mechanism

* Changes based on review

* go fmt

* Add  cluster_config enclosing config block

* Review updates - primarily re restructuring hierarchy

* Removed rogue import

* docs - alignment

* Changes for review

* Refactoring into expandXXX methods

* Refactoring of flattenXXX methods to be explicit
2017-10-30 16:41:37 -07:00
Dana Hoffman
7b69c31f6a
Add labels to google_storage_bucket (#652)
* revendor storage

* revendor gensupport

* revendor bigquery

* add support for storage bucket labels

* bucket label docs
2017-10-30 15:48:26 -07:00
Vincent Roseberry
f6c1a236d9
Add example in docs for creating a subscription with a topic in another project (#651) 2017-10-30 15:08:50 -07:00
Dana Hoffman
6b4afb963f
update region backend service docs (#650) 2017-10-30 13:27:14 -07:00
Dana Hoffman
adbb5dd4fb
Update GKE docs to match actual schema; reorder fields in schema (#637)
* reorder schemas and update docs

* initial_node_count is optional

* clarify when initial_node_count must be set
2017-10-27 15:18:34 -07:00
Paddy
57449a88a2
Merge pull request #615 from danielcompton/deprecate-health-checks
Update docs to mark compute_http(s)_health_check as legacy resources
2017-10-27 12:28:48 -07:00
Michael Parker
f2fc78d082 Adds support for creating KMS KeyRing resources (#518)
* Instantiate the cloudkms client

* Implement Create and Read for the kms key ring resource

* Expose the kms key ring resource

* Create acceptance test for creating a KeyRing, fix read to use KeyRing ID

* Add cloudkms library to vendor

* Address style comments

* Use fully-qualified keyring name in read operation

* Remove call to SetId during read operation

* Set ID as entire resource string

* Spin up a new project for acceptance test

* Use Getenv for billing and org environment variables

* And test and logs around removal from state

* Add comments

* Fixes formatting

* Log warning instead of info

* Use a single line for cloudkms client actions

* Add resource import test

* Add ability to import resource, update helper functions to use keyRingId struct

* Use shorter terraform ID for easier import

* Update import test to use the same config as the basic test

* Update KeyRing name regex to be consistent with API docs

* Add documentation page for resource

* Add KeyRing documentation to sidebar

* Adds unit tests around parsing the KeyRing import id

* Allow for project in id to be autopopulated from config

* Throw error in import if project provider is not provided for location/name format

* Consistent variable names

* Use tabs in resource config instead of spaces

* Remove "-x" suffix for docs

* Set project attribute on import if different from the project config
2017-10-27 09:40:01 -07:00
Daniel Compton
eda98639da Update docs to mark compute_http(s)_health_check as legacy resources
See https://cloud.google.com/compute/docs/load-balancing/health-checks#legacy_health_checks
for more info.
2017-10-27 13:34:28 +13:00
Paddy
548d572bc3 Merge pull request #612 from danielcompton/patch-1
Expand docs for auto_healing_policies for Instance Group Managers
2017-10-26 16:07:14 -07:00
Daniel Compton
25bad09a8e Expand docs for auto_healing_policies in Instance Group Managers
Adds more information for both (Zonal) Instance Group Managers and
Regional Instance Group Managers.
2017-10-27 12:02:50 +13:00
Paddy
8c28cddee8 Merge pull request #613 from danielcompton/patch-2
Explain that sql_database_instance maintenance windows are specified in UTC
2017-10-26 15:34:19 -07:00
David Quarles
1a8f3b8d18 Add support for CPU Platform in google_container_node_pool (#622)
* update container/v1 API

* add support for CPU Platform in `google_container_node_pool`

* fix broken links
2017-10-25 14:08:48 -07:00
Sébastien GLON
94e0b746df Add support for google_service_account_key (#472)
* Initial support for google service account keys

* Add vendor for vault and encryption

* Add change for PR comment

* Add doc and improvement fo public key management

* adding waiter for compatibility with issue google/google-api-go-client#234

* improvement

* Add test with pgp_key

* Perform doc anf format

* remove test if public_key exists

* Add link on doc

* correct pr
2017-10-25 12:43:20 -07:00
Patrick Decat
3d1e11023d Make google_service_account resource importable (#606)
* Make google_service_account resource importable

* Add google_service_account testcase with default project

* Mark google_service_account.project as computed to ensure the project id is always stored in the state, defined in configuration or not. Add corresponding test cases

* Inline variables with single usage

* Replace tabs with spaces in configuration strings

* Ensure service account is not recreated when the default project is explicitely added to the configuration

* camelcase
2017-10-25 12:33:21 -07:00
Paddy
0e2fa2e38f Address comments.
Fix typo, add log line, and document what we're doing on the website.
2017-10-24 14:43:35 -07:00
Paddy
1ab0b1f911 Fix link to compute_lb_ip_ranges data source
We had a typo in the sidebar link, which was causing the link to be broken. This fixes the link.
2017-10-24 11:39:02 -07:00
Patrick Decat
16611cb3ac Make google_project_services resource importable (#601)
* Make google_project_services resource importable

* Reuse testAccGoogleProjectAssociateServicesBasic() from resource_google_project_services_test.go
2017-10-23 14:23:51 -07:00
Dana Hoffman
c577ad6e8d Allow setting boot and attached disk sources by name or self link (#605)
* disk cleanup

* fix attached disk test

* allow disk sources from name or url

* parse disk source better on read

* update docs

* fix boot disk source url
2017-10-23 13:26:59 -07:00
Daniel Compton
b798c7b81f Explain that sql_database_instance maintenance windows are specified in UTC 2017-10-21 22:55:02 +13:00
Joe Selman
2765290724 Add label support to google_compute_snapshot (#570)
* Add label support to google_compute_snapshot
* Refactor operation polling code to use client directly
2017-10-13 15:36:03 -07:00
Vincent Roseberry
3f3fa868c7 Fix import for compute_route (#565)
* Reorder fields in schema for style consistency
* Add reusable ZonalFieldValue
* Fix import and read state from API for compute route
* Generate network link without calling the API
2017-10-13 11:05:22 -07:00
Vincent Roseberry
66f876e6ae Add new resource google_compute_target_ssl_proxy (#569)
* Add target ssl proxy
* Add documentation
2017-10-13 11:02:42 -07:00
Vincent Roseberry
fdd9432ed2 Fix autoscaler and org policies docs (#584)
* Add region autoscaler docs
* Change link to API docs in autoscaler docs
* Add autoscaler and org policies documentation to the side menu
2017-10-13 10:14:21 -07:00
Radek Simko
25869fa5c8 Merge pull request #567 from terraform-providers/f-ds-lb-ip-ranges
d/compute_lb_ip_ranges: Add new data source
2017-10-13 07:09:09 +01:00
Dana Hoffman
811530f145 Fix cluster version upgrades (#577)
* wait for running status on a cluster on read

* add min_master_version field

* respond to comments

* add docs

* no node_version on create
2017-10-12 11:21:33 -07:00
Vincent Roseberry
e5d9fe6163 Add support for shared VPC (#572)
* Add VPC host project resource
* Add VPC service project resource
* Add combined acceptance test for shared VPC
* Add docs for shared VPC
* Increase deadline for project services operation
2017-10-11 12:51:09 -07:00
Radek Simko
80ca6c26b1
d/compute_lb_ip_ranges: Add new data source 2017-10-10 22:07:21 +01:00
Radek Simko
96ac8255d1 Merge pull request #561 from terraform-providers/f-compute-vpn-tunnel-secret-sensitive
r/compute_vpn_tunnel: Mark 'shared_secret' as sensitive
2017-10-10 18:24:33 +01:00
Stefan Schmidt
db62fe7b8e Fix broken link to GCP Resource Manager's folder API doc. (#562) 2017-10-10 09:38:40 -07:00
Radek Simko
0e5b4b0597
r/compute_vpn_tunnel: Mark 'shared_secret' as sensitive 2017-10-10 12:57:52 +01:00
kev1nlaube
fa661697e1 Add missing parameters to the node pool docs (#551) 2017-10-09 10:42:35 -07:00
Joe Selman
e3ca8fbe59 Add labels to google_compute_instance_template (#515) 2017-10-09 10:17:15 -07:00
Mioi Hanaoka
efa4c36e37 fix default for connection_draining_timeout_sec (#548)
The default value for the connection_draining_timeout_sec arg was
changed in commit 5cd3e1ec99 from
0 to 300. Fixing the doc to reflect this change.
2017-10-06 12:03:16 -07:00
Vincent Roseberry
306b3d66b4 Forwarding rule network field supports name in addition of self_link (#487)
* Forwarding rule network field supports name in addition of self_link
* Update documentation
2017-10-06 09:33:42 -07:00
Vincent Roseberry
c94cbde1f6 Add import support to google_compute_target_tcp_proxy (#534) 2017-10-05 14:29:53 -07:00
Vincent Roseberry
87f3a58cb2 Add support for org policies at the organization level (#523)
* Fetch latest resource manager client
* Add new resource to manage Org Policy at the organization level.
* Update documentation
2017-10-05 13:20:16 -07:00
Vincent Roseberry
03b11da5bb Update Region Backend Service docs example to use a region instance group manager. (#533)
* Update compute_region_backend_service to use a regional instance group manager in the example

* Update the attributes section
2017-10-05 12:35:33 -07:00
Dana Hoffman
4ec0920ef3 Update region in sql db docs (#521)
* update region in sql db docs

* Update phrasing
2017-10-05 11:17:05 -07:00
Alberto
2f94ff9ad4 Add support for target_tcp_proxy (#528) 2017-10-05 10:27:56 -07:00
Vincent Roseberry
d60deb044a Update google_project docs to reflect that the id field has been removed (#530) 2017-10-04 16:19:43 -07:00
Michael Parker
467481745f Fix: Updates sidebar text for google_client_config resource (#520) 2017-10-03 18:07:15 -07:00
Bryce Kahle
7e4c17d8a5 Fix formatting of container_node_pool.min_node_count (#499) 2017-10-03 10:46:33 -07:00
Joe Selman
475ddb1b5b Add kubernetes dashboard addon (#464)
* Update google.golang.org/api/container/v1

* Add support for kubernetes_dashboard addon

* Fix tab/spaces issue in string
2017-10-03 09:29:27 -07:00
Joe Selman
ef543b20c5 Add google_logging_folder_sink resource (#470)
* Fix bad page title

* Add resource logging_folder_sink

* Use proper parse function and string format

* Remove unused strings
2017-10-03 09:26:19 -07:00
Paddy
cfe614b5d9 Fix broken links. 2017-10-02 10:19:22 -07:00
Paddy
fccae61d61 1.0.0 Deprecations, pt 2
Fix the CI tests we broke with the deprecations for 1.0.0, and update
the docs we missed. Also, update the examples.
2017-09-29 16:04:52 -07:00
Paddy
3db816d686 Merge pull request #491 from terraform-providers/paddy_1.0_deprecations
Remove deprecated resources for 1.0.0.
2017-09-29 11:32:14 -07:00
Paddy
02512af271 Revert Shared VPC.
We want to talk about the design of Shared VPC a little bit more before
it ships, so this PR removes it, to be added back at a later date.
2017-09-29 04:59:41 -07:00
Paddy
50ad10a513 Address comments. 2017-09-29 04:57:47 -07:00
Paddy
e1b0eadfa7 Remove disk. 2017-09-28 17:23:29 -07:00
Paddy
81162a745e Update docs to reflect removal and deprecations. 2017-09-28 15:51:31 -07:00
Vincent Roseberry
bc25c02cbf Firewall network field now supports self_link in addition of name (#477) 2017-09-28 12:02:39 -07:00
Vincent Roseberry
d35b92086a global_address ipv6 uses v1 api
global_forwarding_rule ipv6 uses v1 api
Update documentation
2017-09-26 15:57:22 -07:00
Joe Selman
8231d6a83a Add resource_logging_billing_account_sink resource (#457)
* Add resource_logging_billing_account_sink resource

* Fix bad style
2017-09-26 15:26:54 -07:00
kf Fellows
30c8186a2e Update dataset_id value for google_bigquery_table resource in docs (#465) 2017-09-26 14:17:34 -07:00
Vincent Roseberry
5e44df5199 Pubsub subscription read state from API and import support (#456) 2017-09-26 13:44:13 -07:00
Vincent Roseberry
20929eb468 Assign IAM policy to folder. (#447)
* Assign IAM policy to folder.
* Add documentation for google_folder_iam_policy
2017-09-25 11:30:45 -07:00
Vincent Roseberry
2e940178d8 Fix example in google_project. Name field is required. (#450) 2017-09-22 12:42:36 -07:00
Manoj Srivastava
c1d0e716d9 Folder support: Assign/Reassign a google project to a folder. (#438)
+ Make the org_id optional when creating a project. Closes #131
+ Mark org_id as computed to allow for GCP automatically assigning the org.
+ Add an acceptance test for project creation without an organization.
+ Skip TestAccGoogleProject_createWithoutOrg if GOOGLE_ORG is set.
+ Add a folder_id to the google_project resource, optionally
  specifying the ID of the GCP folder in which the GCP project should
  live.
+ Document how one can provision a project into a folder, and added a
  sample configuration to create a project into an existing folder.
* Skip test without org if service account is used
* Support folders/* or id only for the folder id field
2017-09-22 13:03:08 -05:00
Marcus Barczak
f3ecd1ea1c note ipv4 addresses can't be disabled on 2nd gen (#446)
Adds a note that IPv4 addresses can't be disabled on 2nd generation cloudsql instances to save end user confusion.
2017-09-22 12:12:28 -05:00
Vincent Roseberry
a575c6e824 Update service account docs to mark policy field as deprecated. (#437)
Also, update example to stop using the deprecated field.
2017-09-18 08:24:08 -07:00
Christopher Stelma
43e749c213 Add versioning for google storage buckets (#381) 2017-09-15 08:36:01 -07:00
Joe Selman
3d5eccc1c6 Add stackdriver project sink support (#432)
* Vendor cloud logging api

* Add logging sink support

* Remove typo

* Set Filter simpler

* Rename typ, typName to resourceType, resourceId

* Handle notFoundError

* Use # instead of // for hcl comments

* Cleanup test code

* Change testAccCheckLoggingProjectSink to take a provided api object

* Fix whitespace change after merge conflict
2017-09-14 19:15:14 -07:00
Vincent Roseberry
167abea500 Create, update, move and delete a GCP folders. (#416)
* Initialize resourcemanager v2beta1 client
* Create new google_folder resource supporting create, move, update and delete operations.
* Add documentation for folders
2017-09-14 11:19:58 -07:00
Raúl Naveiras
eee011fc99 Add support for setting labels to google_project (#383) 2017-09-14 10:39:21 -07:00
Joe Selman
41248230ef Expose instance_id as a computed field on compute_instance (#427) 2017-09-13 16:18:08 -07:00
Dana Hoffman
2d733a1600 Add new google_compute_shared_vpc resource (#396)
* Revendor compute apis

* Add new resource for shared VPC host

* add test for disabled

* add docs for shared vpc host resource

* make project required

* Add new resource google_compute_shared_vpc

* Remove google_compute_shared_vpc_host

* Add docs for shared vpc resource

* Remove docs for shared vpc host resource

* fix typos in shared vpc docs

* move helper fn to utils.go
2017-09-13 10:36:07 +08:00
Victor Hiairrassary
9ede711538 Fix BigQuery Dataset doc (#407)
The `labels` argument should not be nested under `default_table_expiration_ms`
2017-09-12 11:26:19 -07:00
Vincent Roseberry
6b2669f406 Cross-reference multi-zone and single-zone documentation (#402) 2017-09-12 09:34:58 -07:00
Joe Selman
7206284739 Add support for labels to compute_global_forwarding_rule (#395)
* Add support for labels to compute_global_forwarding_rule

* Factor out label api methods and use case statement for api version
2017-09-12 08:06:40 -07:00
Joe Selman
7dea4e86c1 Export connection_name on sql instance resource (#406) 2017-09-12 08:04:13 -07:00
Daniel Compton
22865ce3bc Update compute_global_forwading_rule docs to reference global IP address (#404) 2017-09-11 10:09:07 -07:00
Anders Bruun Olsen
bf51f26c07 Pubsub importable (#392) 2017-09-11 09:46:27 -07:00
Vincent Roseberry
c751a32626 Add new resource region_instance_group_manager (#394) 2017-09-08 17:02:32 -07:00
Vincent Roseberry
7ceea51dfd Add support for alias_ip_range in google_compute_instance network interface (#375) 2017-09-07 13:43:00 -07:00
Vincent Roseberry
5be9d28369 Import for compute_address supports multiple id formats. (#378)
This allows to import address from region and project different than the default project.
2017-09-07 10:38:26 -07:00
Anders Bruun Olsen
67b7b2dd72 Container cluster importable (#391) 2017-09-07 10:31:58 -07:00
Kit Ewbank
0858e7cd2d Add google_client_config data source (#385) 2017-09-06 14:52:32 -07:00
Matt Morrison
31d4113875 Fix docs. Node Pool autoscaling attribute names (#382) 2017-09-06 13:57:00 -07:00
Joe Selman
0605638885 Add preemptible as an option to node config (#341)
* Add preemptible as an option to node config

* Check for preemptible in test matching functions

* Move flattenClusterNodeConfig to node_config

* Handle bools properly when comparing in cluster and node pool tests

* Use a supported image_type in cluster tests
2017-09-01 13:02:26 -07:00
Vincent Roseberry
c2399f76fb Add support for min_cpu_platform in google_compute_instance. (#349) 2017-08-30 17:25:31 -04:00
Joe Selman
6377443d4a Add ability to set priority on compute_firewall (#345)
* Add ability to set priority on compute_firewall

* Set the priority explicitly when upgrading v1->v0beta
2017-08-30 12:19:50 -07:00
Dana Hoffman
2f71ca6530 multi-nic is now GA (#361) 2017-08-29 17:29:07 +09:00
Vincent Roseberry
7a216c40b5 Add support for guest_accelerators (GPU) to google_compute_instance (#330) 2017-08-22 15:49:43 -04:00
Joe Selman
772a5f28f9 Add labels to google_compute_disk (#344)
* Remove redundant '(Computed)' text

* Add support for setting labels on compute_disk

* Fix minor spacing issue in test
2017-08-18 16:10:47 -07:00
Joe Selman
227ea5660f Add support for setting labels to compute_image (#339) 2017-08-18 13:34:11 -07:00
Paddy
cc197a8422 Rename file.
This matches what we have in provider.go now.
2017-08-17 14:24:22 -07:00
Paddy
a9f41ef6ed Fix website link. 2017-08-17 14:08:22 -07:00
Vincent Roseberry
ae97a89f9b Add link to beta section for subnetwork beta parameters (#336) 2017-08-17 10:45:55 -07:00
Joe Selman
bcaa151cfa Add support for Google RuntimeConfig (#315)
* Vendor runtimeconfig

* Add support for RuntimeConfig config and variable resources

This allows users to create/manage Google RuntimeConfig resources and
variables. More information here:
https://cloud.google.com/deployment-manager/runtime-configurator/

Closes #236

* Remove typo

* Use top-level declaration rather than init()

* Cleanup testing-related code by using ConflictsWith

Also adds better comments around how update works
2017-08-14 14:16:11 -07:00
Nicki Watt
752b406783 Add Google Spanner Support (google_spanner_database) (#271) 2017-08-14 09:53:11 -07:00
Nicki Watt
04b3ffb8ea Add Google Spanner Support (google_spanner_instance) (#270) 2017-08-14 09:30:41 -07:00
Riley Karson
5645f72996 Add support for instance_type to google_bigtable_instance. (#313)
* govendor fetch cloud.google.com/go/bigtable

* Vendor the rest of the stuff.

* Add support for instance_type to google_bigtable_instance.

* Revendored some packages.

* Removed bad packages from vendor.json
2017-08-11 14:43:00 -07:00
Aleksandr Didenko
99b43ac400 Add compute instance group data source (#267) 2017-08-11 10:17:36 -07:00
Riley Karson
7625ad3375 Document Beta Features in index.html (#280)
* First pass of Beta docs.

* Updated new docs to link as well.

* Updated new Beta resources with Beta link.
2017-08-10 13:28:52 -07:00
Vincent Roseberry
52daf4097a Add subnetwork secondary ip ranges beta feature (#310) 2017-08-09 15:02:54 -07:00
Stefan Schmidt
caeb43e39a Mark google_sql_database.{charset,collation} as computed instead of having defaults (#229)
* Mark google_sql_database.{charset,collation} as computed instead of having defaults.

This change is required to avoid the following scenario:
When upgrading from a previous version of the Google provider, TF will change
the charset/collation of existing (TF-managed) databases to utf8/utf8_general_ci
(if the user hasn't added different config values before running TF apply),
potentially overriding any non-default settings that the user my have applied
through the Cloud SQL admin API. This violates POLA.

* Remove charset/collation defaults from the documentation, too.

* Add links to MySQL's and PostgreSQL's documentation about supported charset and collation values.

* Use version 5.7's docs instead of 5.6, since that's the most up to date version of MySQL that we support.

* Add a note that only UTF8 / en_US.UTF8 are currently supported for Cloud SQL PostgreSQL databases.
2017-08-08 14:32:16 -07:00
Riley Karson
89ce4d92e4 Add Beta support for egress/direction to google_compute_firewall. (#306)
* Add Beta support for direction to google_compute_firewall.

* Added docs.
2017-08-08 13:28:49 -07:00
Jake Champlin
88140df221 docs: fix typos in sql-database-instance (#279) 2017-08-08 10:07:23 -05:00
Riley Karson
2d0d8bdcc0 Add Beta support & Beta feature deny to google_compute_firewall (#282)
* Add versioned Beta support to google_compute_firewall.

* Add Beta support for deny to google_compute_firewall.

* remove extra line:

* make fmt

* Add missing ForceNew fields.

* Respond to review comments testing functionality + reducing network GET to v1
2017-08-07 13:14:35 -07:00
Anders Bruun Olsen
f06970c97a Make google_container_node_pool resources importable. (#284) 2017-08-07 10:35:39 -07:00
Vincent Roseberry
958f27892b Add google_compute_network_peering docs page to the sidebar and fix the labels for all resources (#269) 2017-08-07 10:13:55 -07:00
Riley Karson
a4e1083fd1 Add a test that multiple nics work in google_compute_instance. (#289)
* Add a test that multiple nics works in google_compute_instance.

* Add note that multiple nics is in Beta.
2017-08-04 14:18:07 -07:00
Vincent Roseberry
3fde8cf24e google_compute_instance can specified the subnetwork using a self_link (#290) 2017-08-04 11:00:45 -07:00
Riley Karson
68f2e3528c Add Beta support & Beta feature ip_version to google_compute_global_address (#250)
* Make google_compute_global_address a versioned resource with Beta support.

* Added Beta support for ip_version in google_compute_global_address.

* Move checks to TestCheckFuncs, add a regression test for IPV4 on v1 resources.

* Consolidated TestCheckFuncs to a single function.

* Add missing return statement.

* Fix IPV4 test

* Clarified comment.
2017-08-04 10:53:43 -07:00
Riley Karson
0d02b116c7 Add Beta support & Beta feature ip_version to google_compute_global_forwarding_rule (#265)
* Add versioned Beta support to google_compute_global_forwarding_rule.

* Add Beta support for ip_version in google_compute_global_forwarding_rule.

* Temporary commit with compute_shared_operation.go changes.

* Added a test to see if v1 GFR is still IPV4, moved to a TestCheckFunc

* This API returns the original self links, but let's make sure we don't diff.
2017-08-04 10:15:51 -07:00
alex1x
8570849022 Add Support for Google source repos (#256) 2017-08-03 15:00:34 -07:00
Stefan Schmidt
59e139b373 Doc fix: Changing google_project_services.project will not force a new project to be created. (#286) 2017-08-03 11:02:24 -07:00
Riley Karson
3877b340e6 Add Beta support for auto_healing_policies to instance group manager. (#249)
* Add support for auto_healing_policies to google_compute_instance_group_manager.

* Add a test for self link stability when a v1 resource uses a versioned resource.

* Add a comment about what the stable self link test does.

* make fmt

* Fixed formatting on new tests.

* Address review comments.

* Fix make vet
2017-08-02 10:12:16 -07:00
Stefan Schmidt
0b4b432bdf Doc fix: The project display name is actually always required. 2017-08-02 11:34:27 +02:00
Stefan Schmidt
fec05d3afa For the sake of consistency, use the same phrasing ('This can also be (#273)
specified...') for the project, credentials, and region attributes.
2017-08-01 12:37:32 -07:00
Vincent Roseberry
42e901fce4 Improve docs for dns_record_set by adding example for SPF record. (#266) 2017-08-01 09:59:27 -07:00
Aleksandr Didenko
1ec19cf3d9 Add support node config for GKE node pool (#184)
* Add support node config for GKE node pool

* Review fixes:
- Set max items in node config schema
- Fill missing node config fields
- Put test helpers above than test vars

* Update checks in node pool tests

* Fix node pool check match
2017-07-31 09:28:39 -07:00
Vincent Roseberry
53e481434e Add new data source: google_dns_managed_zone (#268) 2017-07-31 09:27:18 -07:00
Paddy
cb538a3535 Merge pull request #262 from ubschmidt2/default_creds
Document that TF falls back to using the application default credentials.
2017-07-28 12:37:32 -07:00
Paddy
37df58296b Merge pull request #171 from terraform-providers/paddy_iam
Add google_project_iam_binding and google_project_iam_member resources.
2017-07-28 12:22:33 -07:00
Vincent Roseberry
33d59463d2 Add links to official docs across compute Terraform Google Provider docs (#264) 2017-07-28 11:05:48 -07:00
Joe Selman
50c10d4e7d Revert "Revert metadata item changes (#225)" (#257)
* Revert "Revert metadata item changes (#225)"

This reverts commit 884158d891.

* Use computeOperationWait instead of computeOperationWaitGlobal
2017-07-28 10:49:02 -07:00
Joe Selman
96cef4df0e Update google_compute_ssl_certificate docs to reference lifecycle (#258) 2017-07-28 10:45:32 -07:00
Vincent Roseberry
3eaf4751db Add new resource google_compute_network_peering (#259) 2017-07-28 09:51:29 -07:00
Stefan Schmidt
9572b638ea Document that the Terraform Google Provider will fall back to using the Application Default Credentials. In particular, it will use the user's identify if the user has made his credentials available by running gcloud auth application-default login. 2017-07-28 15:39:11 +02:00
Paddy
c89429cf7a Newlines, but really this time.
That's embarrassing. How did I miss that?
2017-07-27 14:39:28 -07:00
Paddy
4b9432dd3a Newlines on website source. 2017-07-27 14:38:25 -07:00
Dana Hoffman
42a898dbd0 Add support for node pool autoscaling (#157)
* add node pool autoscaling

* docs for node pool autoscaling

* remove enabled attribute

* remove enabled from docs
2017-07-26 13:21:51 -07:00
Vincent Roseberry
01ef451a94 Support import for google_compute_subnetwork (#227) 2017-07-26 09:30:59 -07:00
Paddy
775d931476 Merge pull request #6 from pdecat/f-google-storage-bucket-lifecycle
Add provider/google/google_storage_bucket lifecycle interface
2017-07-25 16:11:59 -07:00
Paddy
fa2d54f408 Terraform fmt website examples. 2017-07-25 12:22:52 -07:00
Dana Hoffman
884158d891 Revert metadata item changes (#225)
* Revert "Add additional fingerprint error to check for when updating metadata (#221)"

This reverts commit 4c8f62edf6.

* Revert "Fix bug where range variable is improperly dereferenced (#217)"

This reverts commit 8f75c1c9a5.

* Revert "Add support for google_compute_project_metadata_item (#176)"

This reverts commit 236c0f5d24.
2017-07-20 09:54:59 -07:00
Vincent Roseberry
076d31dd69 Support import for google_compute_instance_group (#201) 2017-07-20 09:21:18 -07:00
Vincent Roseberry
d9abcd8a9f Support path-only when referencing ssl certificate in compute_target_https_proxy (#210) 2017-07-19 13:49:14 -07:00
Vincent Roseberry
f4db3fd1aa Support import for google_compute_https_health_check (#213) 2017-07-18 11:35:24 -07:00
Joe Selman
236c0f5d24 Add support for google_compute_project_metadata_item (#176)
* Add support for google_compute_project_metadata_item

This allows terraform users to manage single key/value items within the
project metadata map, rather than the entire map itself.

* Update CHANGELOG.md

* Add details about import
2017-07-17 16:28:51 -07:00
Stefan Schmidt
9e5aa27677 Add charset and collation to google_sql_database. (#183)
* Add charset and collation to google_sql_database.

* Add documentation for charset, collation attributes.

* Extend the existing acceptance test to also cover charset and collation.

* Charset and collation always have a value present. Also inline.

* Move charset and collation to optional arguments.

* Add charset and collection to the example.

* Document charset and collation defaults.

* Keep TestAccGoogleSqlDatabase_basic as is, add TestAccGoogleSqlDatabase_update.
2017-07-17 08:32:29 -07:00
Patrick Decat
05d2567101 Clarify documentation regarding the required action and condition blocks, and that at least one condition element has to be defined 2017-07-17 11:46:24 +02:00
Patrick Decat
accb665914 Rename number_of_newer_versions as num_newer_versions 2017-07-17 11:46:24 +02:00
Patrick Decat
7676453758 Add documentation provider/google/google_storage_bucket lifecycle interface 2017-07-17 11:46:24 +02:00
Vincent Roseberry
a5281c6e7c Add import support for google_compute_image. (#194)
* Add import support for google_compute_image.

* Added comment explaning why we set the create_timeout in the import state method

* Don't ForceNew for create_timeout field

* Update image name in import documentation
2017-07-14 13:32:25 -07:00
Dana Hoffman
2367357869 Update compute instance docs/tests to use new boot and scratch disk attributes (#189)
* update compute instance docs to use new boot and scratch disk attributes, document attached_disk

* Update compute instance tests to mostly use new boot and scratch disk attributes

* Fix encryption test by setting values in state from what was there before
2017-07-14 10:57:23 -07:00
Joe Selman
95e72d513e Merge pull request #177 from terraform-providers/bigtable-support
Add support for Google Cloud Bigtable.
2017-07-11 16:26:51 -07:00
Riley Karson
fa148841aa Changed _ to - in sidebar_current for bigtable instance and table. 2017-07-05 12:50:41 -07:00
Riley Karson
c8c5f17143 Move data sources block in sidebar above resources blocks. 2017-07-05 11:29:54 -07:00
Riley Karson
fc24b321b9 Add bigtable sidebar entries. 2017-07-05 11:29:54 -07:00
Riley Karson
d0d116fa3e Add support for Bigtable table. 2017-07-05 10:46:11 -07:00
Paddy
8a880fdcf8 Documentation updates.
Fix a sentence in the binding docs, and add docs for members.
2017-07-03 21:05:02 -07:00
Paddy
eed8487971 Update website docs for google_project_iam_binding.
Add docs to the website for google_project_iam_binding.
2017-07-03 19:12:24 -07:00
Raphael Randschau
4c2fbfcd27
chore(docs): add undocumented attributes 2017-06-30 12:36:47 +02:00
Raphael Randschau
e8af028fb5
chore(docs): remove trailing . 2017-06-30 12:36:47 +02: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
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
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
3c7cdf0bb4 Updated import documentation. (#156) 2017-06-27 17:07:47 +03:00
Riley Karson
5bceaef26f Moved required fields and updated docs. 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
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
Paul Stack
54e2c56210 Merge pull request #135 from rileykarson/import-docs-3
Update 5 more importable resources' docs
2017-06-21 12:00:29 +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
Riley Karson
8bdfd3cd2f Specify the type of health checks supported for both backend services. 2017-06-20 10:45:58 -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
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
Reinhard Nägele
143a34ed30 Add documentation for labels and tags 2017-06-17 21:07:10 +02: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
3f26ea6425 Updated variable names and docs. 2017-06-16 15:39:44 -07:00
Riley Karson
d0309dad3e Update 5 more Import blocks. 2017-06-16 10:53:36 -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
Paul Stack
83e05e01c3 Merge pull request #119 from rileykarson/update-existing-import-docs
Update existing resources import docs
2017-06-16 14:49:14 +03:00
Paul Stack
dbcd8b80be Merge pull request #120 from rileykarson/add-import-docs-1
Add Import blocks to docs for 5 various resources
2017-06-16 14:48:24 +03:00
Paul Stack
dae866228e Merge pull request #127 from rileykarson/fix-backend-service-example-underscores
Change underscores to hyphens in google_compute_backend_service docs example
2017-06-15 19:46:08 +03: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
Riley Karson
fd08ff583b Fix the underscores in the google_compute_backend_service example 2017-06-14 14:17:34 -07: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
Christoph Tavan
25c6a00ca4 Improve google documentation (#124)
* Mention PostgreSQL in sql_database_instance docs

As mentioned in hashicorp/terraform#12617 the
google_sql_database_instance resource already supports `POSTGRES_9_6` as
`database_version`, it is just undocumented so far.

* Make naming of google_sql_database consistent

Looks like this is a relict from some copy & paste from
`google_storage_*` while writing the docs for `google_sql_database`.

* Note that Postgres support is still BETA
2017-06-14 16:11:31 -05:00
Riley Karson
fc3a79ce8a Update resource address in import example. 2017-06-13 17:50:23 -07:00
Riley Karson
2a5450be6f Add import docs for 5 resource types. 2017-06-13 17:46:50 -07:00
Riley Karson
75c8c911b1 Update existing resource's import docs to be consistent. 2017-06-13 17:02:27 -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
Jake Champlin
46a47c6518
Transfer of provider website docs 2017-06-09 10:58:06 -04:00
Jake Champlin
b105f39423
Transfer google provider website 2017-06-09 10:58:02 -04:00