Ralf Waldvogel
486f225008
fixed documentation typo
2018-09-07 07:17:40 +02:00
Ralf Waldvogel
c3e5019ddd
fixed documentation for import formats
2018-09-07 06:32:13 +02:00
Ralf Waldvogel
90980c1b24
Merge branch 'master' of https://github.com/terraform-providers/terraform-provider-google
2018-09-07 06:26:08 +02:00
Chris Stephens
30773a784d
Setting a default update_mask for all log sinks
...
[According to log sink documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/sinks/update )
the api will eventually throw an error if update mask isn't provided. The
default specified here is what the api is currently using when an empty mask
is passed.
2018-09-06 09:48:48 -07:00
Riley Karson
035a581b9f
Add import support for org, folder, billing logging sinks ( #1860 )
...
Fixes #1494 .
* Add import support for `google_logging_organization_sink`, `google_logging_folder_sink`, `google_logging_billing_account_sink`.
Using `StateFunc` over `DiffSuppressFunc` should only affect tests; for some reason `TestAccLoggingFolderSink_folderAcceptsFullFolderPath` expected a `folder` value of `folders/{{id}}` vs expecting `{{id}}` when only `DiffSuppressFunc` was used, when in real use `DiffSuppressFunc` should be sufficient.
2018-09-06 08:14:55 -07:00
Thomas Poindessous
0aaa18227a
Be more specific about the number of zones
...
Changed from review.
The number of zones is three by default.
2018-09-06 14:07:45 +02:00
David Alger
526fb51824
Correct google_compute_ssl_certificate import example ( #1970 )
2018-09-05 15:34:47 -07:00
Chris Stephens
a291a19c0c
Merge pull request #1990 from chrisst/is-1703-docs
...
Improving billing logging sink docs
2018-09-05 15:19:11 -07:00
Chris Stephens
70e55920d6
Improving billing logging sink docs
2018-09-05 15:08:42 -07:00
Riley Karson
c8ba3c0b3f
Cleaned up google_project_usage_export_bucket code and docs. ( #1922 )
2018-09-05 10:31:35 -07:00
Seth Vargo
96cb1fbc16
Encourage users to set lifecycle hooks on kms_crypto_key resources ( #1896 )
...
@michaelharo suggested this would be a good best practice for this particular resource to prevent users from accidentally deleting a bunch of encryption keys on a -/+ and losing data, and I agree.
This commit adds a quick documentation blurb saying what actually happens if those crypto key versions are destroyed and also updates the snippet to showcase a lifecycle hook.
2018-09-05 09:59:41 -07:00
Nathan McKinley
9065b5a624
Addition of create_subnetwork and other fields relevant for Alias IPs ( #1921 )
...
* Addition of create_subnetwork and use_ip_aliases.
* add fields for [cluster|services]_ipv4_cidr_block and subnetwork_name
2018-09-05 09:52:06 -07:00
Chris Stephens
e6af1c2a7d
Merge pull request #1958 from chrisst/debian-8-docs
...
updating examples in documentation for debian-9
2018-08-30 12:39:20 -07:00
Chris Stephens
ea6b4ff881
updating examples in documentation for debian-9
2018-08-28 16:58:27 -07:00
emily
27ade47e5a
Fixes for importing sql database instances ( #1956 )
...
* fix importing for sql resources
* fmt
* fix id for sql db import, tests
* change test names to be more specific
2018-08-28 16:51:37 -07:00
The Magician
2afafa0573
Magic Modules changes. ( #1951 )
2018-08-28 16:48:00 -07:00
The Magician
f1f0bc97e2
Autogenerate HealthCheck resource ( #1941 )
2018-08-27 16:35:47 -07:00
Ralf Waldvogel
b66a62078d
added documentation for import with project
2018-08-26 10:11:14 +02:00
Riley Karson
fbad37ebff
Fix storage notification tests ( #1913 )
...
* Update google_storage_project_service_account to mirror API.
* Fix storage notifications test, clarify docs.
2018-08-22 08:19:52 -07:00
Paddy Carver
85ed4c4f86
Add docs about image families and instance templates.
...
Recommend using our data source instead of hardcoding the family into a
template.
2018-08-22 01:43:50 -07:00
The Magician
875f1f874e
Generate resource_compute_firewall in magic-modules. I also decided to use PATCH instead of PUT for updates, because a lot of the fields we had marked as ForceNew can be updated with PATCH. ( #1907 )
...
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-08-21 14:12:46 -07:00
Nathan McKinley
41e088dcef
Update compute_instance.html.markdown ( #1912 )
2018-08-21 13:47:52 -07:00
Craig Furman
93d0caa9ad
Document a default in google_storage_bucket ( #1905 )
...
The default of the log_object_prefix is the name of the bucket we are
enabling logging on, not the name of the bucket that receives the logs.
2018-08-20 22:00:36 -07:00
The Magician
3ff7ccca7c
Add Policy, Attestor, and Note resources for Binary Authorization ( #1885 )
...
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-08-20 16:46:13 -07:00
The Magician
fb66cd88c5
Fix documentation for resource manager lien. ( #1901 )
2018-08-17 16:33:38 -07:00
aidy
5bca1b3f03
Fix length of day in documentation ( #1881 )
2018-08-17 14:47:47 -07:00
Nathan McKinley
d77c0adbb2
Add support for bucket encryption ( #1876 )
...
* Support encryption in Storage bucket.
* Add self links to crypto keys and key ring ids
* Update ID documentation to talk about self link instead.
2018-08-17 14:33:27 -07:00
Dana Hoffman
d1bf585724
Add support for binary authorization in GKE ( #1884 )
...
* revendor container/v1beta1
* add support for binauthz in gke
* update description
2018-08-16 17:51:03 -07:00
Riley Karson
8506527a80
Add support for boot_disk_type to google_dataproc_cluster ( #1855 )
2018-08-15 23:00:11 -07:00
The Magician
d768c67b30
Formatting fixes around dashes in documentation ( #1849 )
2018-08-15 22:59:44 -07:00
Scott Jungwirth
ee2e6c4440
Fix typo in google_project_service import docs ( #1874 )
2018-08-14 17:08:22 -07:00
Simon St John-Green
7558497940
Update google_storage_notification docs to not hardcode service account ( #1832 )
...
It's neater to use the google_storage_project_service_account data provider
instead.
2018-08-14 16:51:30 -07:00
Nathan McKinley
d01c0cd60e
Fixes related to autogenerating the VPN Tunnel resource ( #1850 )
2018-08-07 17:55:45 -07:00
Dana Hoffman
00e5bd5363
allow updating node image types ( #1843 )
...
Fixes #1702 .
@chrisst I'm putting you as a reviewer, but no rush. Feel free to ask as many questions as you have! Also feel free to offer suggestions 😃 (or just say it's perfect as-is, that works too)
2018-08-07 14:07:28 -07:00
Nathan McKinley
830ffeb7f3
Strengthen warning in google_project_services. ( #1823 )
2018-07-27 17:01:38 -07:00
Nathan McKinley
aaf18dacca
CloudBuild Trigger substitutions ( #1810 )
2018-07-25 13:38:35 -07:00
The Magician
0fdc262183
Add LabelFingerprint and Label to Address and GlobalAddress. ( #1811 )
2018-07-25 13:25:16 -07:00
oceyral
7da529f3c1
Implement multiple versions for regional instance groups ( #1809 )
2018-07-25 13:21:20 -07:00
Dana Hoffman
7c47e13aa6
Changes to things that got merged too early ( #1790 )
2018-07-18 15:47:23 -07:00
Pavel Skuratovich
39497565da
Add an example of 'authorized_networks' generation ( #1741 )
...
Copy an example from https://github.com/terraform-providers/terraform-provider-google/issues/1644 to the docs
2018-07-18 15:04:50 -07:00
The Magician
c0610c5544
Add google_compute_region_disk resource. ( #1755 )
...
<!-- This change is generated by MagicModules. -->
/cc @danawillow
2018-07-18 14:24:21 -07:00
Thomas Poindessous
ca01beaa21
Update container_cluster.html.markdown
2018-07-13 01:20:09 +02:00
Thomas Poindessous
2ccefc46ec
Update container_cluster.html.markdown
...
Remove beta for regional cluster. Add an explanation about the total number of nodes
2018-07-13 01:17:03 +02:00
The Magician
499690f3b3
Autogenerate router resource. Also adds update support and a few new fields. ( #1723 )
2018-07-12 12:51:11 -07:00
Paddy
3d2e72208e
Merge pull request #1717 from Mierdin/master
...
Implement 'licenses' field in compute_image resource
2018-07-11 21:15:35 -07:00
Paddy
486be87b12
Merge pull request #1731 from nyurik/patch-1
...
Update compute_ssl_certificate.html.markdown
2018-07-11 04:22:08 -07:00
Dana Hoffman
a6198a0b60
prereqs for regional disks ( #1753 )
...
In testing an upcoming `google_compute_region_disk` resource, I had to make these changes. Checking them in separately so that when the magician runs, these changes will already be a part of TF.
2018-07-10 17:10:05 -07:00
The Magician
bbed86dd0b
Magic Modules generated documentation cleanup. ( #1746 )
2018-07-10 15:42:50 -07:00
Yuri Astrakhan
0df88d300e
fix random keepers
2018-07-06 22:48:21 -04:00
The Magician
b2140c98d0
Magic Modules changes. ( #1738 )
2018-07-06 14:53:00 -07:00
Paddy
6b02e9ccd9
Merge pull request #1734 from terraform-providers/paddy_regional_backend_docs
...
Clarify regional backend service docs.
2018-07-06 06:30:04 -07:00
Paddy
c05d3e24c9
Merge pull request #1735 from terraform-providers/paddy_1356
...
Add warning to google_project_iam_binding.
2018-07-06 06:29:49 -07:00
Paddy
2d13fea7a9
Merge pull request #1687 from johnsw87/patch-1
...
Update to private clusters
2018-07-06 05:51:43 -07:00
Paddy
0eb723ec32
Merge pull request #1665 from vishen/container_cluster_disk_type
...
container_cluster: added disk_type node configuration
2018-07-06 05:16:12 -07:00
Paddy
c9f047357c
Merge pull request #1732 from alexis-turpin/patch-1
...
Fix google_compute_route render error
2018-07-06 05:14:59 -07:00
Paddy Carver
9f1bfbb5e8
Add warning to google_project_iam_binding.
...
Call out that it's possible to lock yourself out using
`google_project_iam_binding`.
2018-07-06 04:40:50 -07:00
Paddy Carver
0a582a198b
Clarify regional backend service docs.
...
Make it clear that regional backend services are only for internal load
balancing, and fix the default for protocol. It's not HTTP, as the API
docs claim, but is TCP instead.
2018-07-06 04:17:37 -07:00
Renzo Toma
90eabdec15
Increase max number of master_authorized_networks to 20, per GKE docs.
...
See https://cloud.google.com/kubernetes-engine/docs/how-to/authorized-networks#setting_up_an_authorized_network
2018-07-05 22:10:17 +02:00
Alexis Turpin
3d746c7e8d
Fix render error
2018-07-05 17:50:04 +02:00
Yuri Astrakhan
ef10e32120
Update compute_ssl_certificate.html.markdown
...
It was very confusing for `name_prefix` to be deprecated and undeprecated later.
Adding an example of using random_id in addition to name_prefix
2018-07-04 16:43:23 -04:00
Paddy
cf72a65aa5
Merge pull request #1663 from garethjevans/resourcelabels
...
Added ability to configure resource labels on a GKE cluster
2018-07-02 11:50:25 -07:00
The Magician
ded4eb8c64
Support Redis configuration ( #1706 )
...
<!-- This change is generated by MagicModules. -->
/cc @edevil
Fixes #1547
2018-07-02 10:16:38 -07:00
The Magician
18e0d423d6
Autogenerate VPN Tunnel resource ( #1699 )
2018-06-29 16:27:01 -07:00
The Magician
74c64030b8
add quic_override
to google_compute_target_https_proxy
( #1718 )
2018-06-29 15:24:27 -07:00
The Magician
8e6552bd90
Update redis example to actually use network ( #1720 )
...
Update redis example to actually use network
2018-06-29 09:28:05 -07:00
Dana Hoffman
7e04cee958
add new compute_instance_from_template resource ( #1652 )
...
This was done as its own resource as suggested in slack, since we don't have the option of making all fields Computed in google_compute_instance. There's precedent in the aws provider for this sort of thing (see ami_copy, ami_from_instance).
When I started working on this I assumed I could do it in the compute_instance resource and so I went ahead and reordered the schema to make it easier to work with in the future. Now it's not quite relevant, but I left it in as its own commit that can be looked at separately from the other changes.
Fixes #1582 .
2018-06-28 16:09:23 -07:00
Matt Oswalt
8941c5ef6e
Implement 'licenses' field in compute_image resource
...
Signed-off-by: Matt Oswalt <matt@keepingitclassless.net>
2018-06-28 09:51:50 -07:00
The Magician
5976152ad9
Add generated google_compute_autoscaler and google_compute_region_autoscaler resources. Because this adds the ability to import by more than just the name, we can get rid of all the code in resource_compute_autoscaler.go that tries to find the autoscaler in the provider-specified region. ( #1700 )
2018-06-27 12:49:34 -07:00
The Magician
788e1efaac
Autogenerate google_compute_forwarding_rule. ( #1674 )
2018-06-25 14:03:48 -07:00
Gareth Evans
bf7c70b392
Minor code changes as requested
2018-06-25 09:55:27 +01:00
johnsw87
02ba99025f
private_cluster update
2018-06-24 09:44:58 +01:00
johnsw87
1b49d8507c
Update to private clusters
...
Private clusters maintain a public IP address for kubectl to communicate with the master, the workers are internal IP addresses only.
2018-06-21 15:03:45 +01:00
Josh Yelton
81bffe570f
Add documentionat for client certificate authorization setting ( #1680 )
2018-06-19 15:57:25 -07:00
The Magician
57a2e984ca
Autogenerate Subnetwork. ( #1661 )
2018-06-19 13:56:06 -07:00
Misha Brukman
fbfdd47602
Fix Bigtable docs for instance/cluster [skip ci] ( #1671 )
...
An instance is an abstract container of clusters, it's the cluster that
has the nodes and holds the data, so the number of nodes and location
apply to the cluster.
2018-06-19 10:34:10 -07:00
Jonathan Pentecost
d0890dc2b7
container_cluster: added disk_type node configuration
...
Added node config 'disk_type' which can either be 'pd-standard' or
'pd-ssd', if left blank 'pd-standard' will be the default used by google
cloud.
Closes : #1656
2018-06-15 21:21:51 +01:00
Gareth Evans
e14aa8bf39
Added ability to configure resource labels on a GKE cluster
2018-06-15 11:10:25 +01:00
The Magician
43cccf3e2c
Minor cleanup of disk's labelFingerprint. ( #1651 )
2018-06-14 20:34:10 -05:00
The Magician
f4e4d880c5
Autogenerate Route resource. ( #1647 )
2018-06-14 15:22:02 -05:00
Daisuke Fujita
b7f2025fb9
Add project to container_node_pool import name ( #1653 )
...
## What
As well as https://github.com/terraform-providers/terraform-provider-google/pull/1282 , make `resource_container_node_pool` importer accept `{project}/{zone}/{cluster}/{name}` format to specify the project where the node pool belongs to actually.
## Why
Sometimes I want to import container pool in different project from default SA's. However, currently there is no way to specify project the target node pool belongs to, Terraform tries to retrieve node pool from SA's project, then it fails due to `You cannot import non-existent resources using Terraform import.` error.
2018-06-14 09:54:08 -07:00
Tom Elliff
e78e593115
Fix connection_name parameter sql_database_instance docs ( #1650 )
...
connection_name is a read only parameter that was added in https://github.com/terraform-providers/terraform-provider-google/pull/406 .
2018-06-13 13:19:08 -07:00
Dana Hoffman
d424cf05ba
fix iot updatemask and docs ( #1640 )
2018-06-13 12:37:21 -07:00
The Magician
50f00fa6dc
Autogenerate the Address resource. ( #1634 )
2018-06-11 17:31:33 -07:00
Nathan McKinley
c51ab5f28e
Update storage_bucket.html.markdown ( #1641 )
...
Comment in #1089 suggests it might be helpful to document dependency of import on Compute API.
2018-06-11 17:48:06 -03:00
Dana Hoffman
13eba21650
update sql user docs/comments ( #1635 )
2018-06-11 13:47:01 -07:00
Paddy
8f9d0785f2
Merge pull request #1622 from terraform-providers/paddy_undeprecate_ssl_name_prefix
...
Undeprecate name_prefix for ssl_certificate.
2018-06-11 13:09:08 -07:00
The Magician
d7d72398b6
zone field in compute disk should be optional ( #1631 )
2018-06-08 15:20:39 -07:00
Vincent Roseberry
dafa6eb504
Fix documentation on is_live for storage_bucket ( #1614 )
2018-06-08 09:26:14 -07:00
Paddy
470f27b659
Undeprecate name_prefix for ssl_certificate.
...
As discussed in #1326 , we're not going to remove name_prefix for
compute_ssl_certificate, because it makes the common use case more
ergonomic by a good amount, and the only cost is it's harder to maintain
the autogenerated code, and we've decided the benefits outweigh the
costs in this circumstance.
2018-06-07 18:29:45 -07:00
Vincent Roseberry
01a5dccc3b
Add documentation for network tier ( #1593 )
...
* Add documentation for network tier
* Add named links to fwd rule docs
* add documentation for network address
* Fix typo
2018-06-05 13:42:22 -07:00
Daniel Compton
0b647a3562
Warn about ip_version with ip_address in global forwarding rule ( #616 )
...
If you try and specify them together you will get this error:
google_compute_global_forwarding_rule.your-rule: Error creating Global Forwarding Rule: googleapi: Error 400: Invalid value for field 'resource.ipVersion': 'IPV4'. Both IP Version and IP Address cannot be specified., invalid
2018-06-05 13:39:40 -07:00
Jamie Lennox
f8eb752809
Allow using in repo configuration for cloudbuild trigger ( #1557 )
...
* Allow using in repo configuration for cloudbuild trigger
Cloudbuild triggers have a complex configuration that can be defined
from the API. When using the console, the more typical way of doing this
is to defined the configuration within the repository and point the
configuration to the file that defines the config.
This can be supported by sending the filename parameter instead of the
build parameter, however only one can be sent.
* Acceptance testing for cloudbuild trigger with filename
Ensure that when a cloudbuild repo trigger is created with a filename,
that filename is what actually ends up in the cloud.
* Don't specify "by default" in cloudbuild-trigger.
The docs shouldn't say that "cloudbuild.yaml" is used by default. There
is no default from the APIs, but the console suggest using this value.
Just say it's the typical value in documentation.
2018-06-05 10:17:20 -07:00
The Magician
164936e4a5
add update support for redis ( #1590 )
...
* add update support for redis
* add test for redis update
2018-06-04 17:41:48 -07:00
Mikaël Gibert
d60381a693
Implement multiple version in instance group manager ( #1499 )
...
Hi there,
Here is an attempt to implement canary releases ( #1252 ). This is the first time I write golang and make a terraform contribution, I opened the PR to obtain feedback and advices so please let me know how I can improve this code!
In addition I used `make fmt` to format the code but left some lines bigger than 80 characters, do I need to split them ?
I tested the feature against a project with the following configuration:
```
resource "google_compute_health_check" "mikael-hackathon-healthcheck" {
name = "mikael-hackathon-healthcheck"
check_interval_sec = 1
timeout_sec = 1
healthy_threshold = 2
unhealthy_threshold = 10
http_health_check {
request_path = "/"
port = "80"
}
}
resource "google_compute_instance_template" "mikael-hackaton-template" {
name_prefix = "mikael-hackaton-"
description = "This template is used to create app server instances."
tags = ["loadbalanced", "internal-web", "hackaton"]
labels = {
environment = "hackaton"
}
instance_description = "Hackaton demo rolling upgrade"
machine_type = "n1-standard-1"
can_ip_forward = false
scheduling {
automatic_restart = true
on_host_maintenance = "MIGRATE"
}
disk {
source_image = "debian-cloud/debian-9"
disk_type = "pd-standard"
disk_size_gb = 20
auto_delete = true
boot = true
}
network_interface {
network = "default"
access_config = {}
}
service_account {
email = "${google_service_account.mikael-hackaton.email}"
scopes = ["cloud-platform"]
}
lifecycle {
create_before_destroy = true
}
metadata_startup_script = "apt-get update && apt-get install -y apache2 && echo I am stable version at $(hostname) > /var/www/html/index.html"
}
resource "google_compute_instance_template" "mikael-hackaton-template-canary" {
name_prefix = "mikael-hackaton-canary"
description = "This template is used to create app server instances."
tags = ["loadbalanced", "internal-web", "hackaton"]
labels = {
environment = "hackaton"
}
instance_description = "Hackaton demo rolling upgrade"
machine_type = "n1-standard-1"
can_ip_forward = false
scheduling {
automatic_restart = true
on_host_maintenance = "MIGRATE"
}
disk {
source_image = "debian-cloud/debian-9"
disk_type = "pd-standard"
disk_size_gb = 20
auto_delete = true
boot = true
}
network_interface {
network = "default"
access_config = {}
}
service_account {
email = "${google_service_account.mikael-hackaton.email}"
scopes = ["cloud-platform"]
}
lifecycle {
create_before_destroy = true
}
metadata_startup_script = "apt-get update && apt-get install -y apache2 && echo I am a canary at $(hostname) > /var/www/html/index.html"
}
resource "google_compute_target_pool" "mikael-hackaton-target-pool" {
name = "mikael-hackaton-target-pool"
}
resource "google_compute_instance_group_manager" "mikael-hackaton-manager" {
name = "mikael-hackaton-manager"
base_instance_name = "mikael-hackaton"
#instance_template = "${google_compute_instance_template.mikael-hackaton-template.self_link}"
update_strategy = "ROLLING_UPDATE"
zone = "${var.zone}"
target_pools = ["${google_compute_target_pool.mikael-hackaton-target-pool.self_link}"]
target_size = 5
version {
name = "primary"
instance_template = "${google_compute_instance_template.mikael-hackaton-template.self_link}"
}
version {
name = "canary"
instance_template = "${google_compute_instance_template.mikael-hackaton-template-canary.self_link}"
target_size_fixed = 1
}
named_port {
name = "http"
port = 80
}
auto_healing_policies {
health_check = "${google_compute_health_check.mikael-hackathon-healthcheck.self_link}"
initial_delay_sec = 10
}
rolling_update_policy {
type = "PROACTIVE"
minimal_action = "REPLACE"
max_surge_percent = 100
max_unavailable_percent = 50
min_ready_sec = 5
}
}
```
2018-06-04 15:34:48 -07:00
Dana Hoffman
ac6e30d335
allow beta kubernetes logging; add monitoring validation ( #1589 )
...
Fixes #1577
2018-06-04 15:09:52 -07:00
Seth Vargo
3f9a5da0af
Finish GH-1323 ( #1574 )
...
* Clarify format of GCP machineType property
This should not be in a URL style formatting, which the previous language seemed to be implying
* machineType docs for compute_instance_template
* Remove some accidental spaces
* Update from feedback
Closes GH-1323
2018-06-01 15:45:49 -07:00
The Magician
fd208dc7ca
Autogenerate Disk resource ( #1521 ).
2018-05-31 18:10:06 -07:00
Bruno
5f0dcf4787
Update container_cluster.html.markdown ( #1570 )
...
* Update container_cluster.html.markdown
Just a more clear explanation of what happens when this field is not provided, since there was already an issue with this topic.
* Update container_cluster.html.markdown
Cleared extra comma.
2018-05-31 09:29:48 -07:00
The Magician
6240cf2ab4
Add support for SSL policy to google_compute_target_ssl_proxy ( #1568 )
2018-05-30 16:00:53 -07:00
Tenorio Orta JM
8a77e42698
Added support for restoring default organization policies ( #1477 )
...
* Added support for restoring default organization policies
* Added support for restoring default folder/project organization policies
* Refactored code
* Fixes #1239
* Clarify docs
* Clarify docs
* Clarify docs
2018-05-30 15:48:08 -07:00