mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-19 01:29:57 +00:00
a93b1615ef
Signed-off-by: Modular Magician <magic-modules@google.com>
140 lines
4.1 KiB
Markdown
140 lines
4.1 KiB
Markdown
---
|
|
# ----------------------------------------------------------------------------
|
|
#
|
|
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
|
|
#
|
|
# ----------------------------------------------------------------------------
|
|
#
|
|
# This file is automatically generated by Magic Modules and manual
|
|
# changes will be clobbered when the file is regenerated.
|
|
#
|
|
# Please read more about how to change this file in
|
|
# .github/CONTRIBUTING.md.
|
|
#
|
|
# ----------------------------------------------------------------------------
|
|
layout: "google"
|
|
page_title: "Google: google_compute_backend_service_signed_url_key"
|
|
sidebar_current: "docs-google-compute-backend-service-signed-url-key"
|
|
description: |-
|
|
A key for signing Cloud CDN signed URLs for Backend Services.
|
|
---
|
|
|
|
# google\_compute\_backend\_service\_signed\_url\_key
|
|
|
|
A key for signing Cloud CDN signed URLs for Backend Services.
|
|
|
|
|
|
To get more information about BackendServiceSignedUrlKey, see:
|
|
|
|
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices)
|
|
* How-to Guides
|
|
* [Using Signed URLs](https://cloud.google.com/cdn/docs/using-signed-urls/)
|
|
|
|
~> **Warning:** All arguments including the key's value will be stored in the raw
|
|
state as plain-text. [Read more about sensitive data in state](/docs/state/sensitive-data.html).
|
|
Because the API does not return the sensitive key value,
|
|
we cannot confirm or reverse changes to a key outside of Terraform.
|
|
|
|
## Example Usage - Backend Service Signed Url Key
|
|
|
|
|
|
```hcl
|
|
resource "google_compute_backend_service_signed_url_key" "backend_key" {
|
|
name = "test-key"
|
|
key_value = "pPsVemX8GM46QVeezid6Rw=="
|
|
backend_service = "${google_compute_backend_service.example_backend.name}"
|
|
}
|
|
|
|
resource "google_compute_backend_service" "example_backend" {
|
|
name = "my-backend-service"
|
|
description = "Our company website"
|
|
port_name = "http"
|
|
protocol = "HTTP"
|
|
timeout_sec = 10
|
|
enable_cdn = true
|
|
|
|
backend {
|
|
group = "${google_compute_instance_group_manager.webservers.instance_group}"
|
|
}
|
|
|
|
health_checks = ["${google_compute_http_health_check.default.self_link}"]
|
|
}
|
|
|
|
resource "google_compute_instance_group_manager" "webservers" {
|
|
name = "my-webservers"
|
|
instance_template = "${google_compute_instance_template.webserver.self_link}"
|
|
base_instance_name = "webserver"
|
|
zone = "us-central1-f"
|
|
target_size = 1
|
|
}
|
|
|
|
resource "google_compute_instance_template" "webserver" {
|
|
name = "standard-webserver"
|
|
machine_type = "n1-standard-1"
|
|
|
|
network_interface {
|
|
network = "default"
|
|
}
|
|
|
|
disk {
|
|
source_image = "debian-cloud/debian-9"
|
|
auto_delete = true
|
|
boot = true
|
|
}
|
|
}
|
|
|
|
resource "google_compute_http_health_check" "default" {
|
|
name = "test"
|
|
request_path = "/"
|
|
check_interval_sec = 1
|
|
timeout_sec = 1
|
|
}
|
|
```
|
|
|
|
## Argument Reference
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
* `name` -
|
|
(Required)
|
|
Name of the signed URL key.
|
|
|
|
* `key_value` -
|
|
(Required)
|
|
128-bit key value used for signing the URL. The key value must be a
|
|
valid RFC 4648 Section 5 base64url encoded string.
|
|
|
|
* `backend_service` -
|
|
(Required)
|
|
The backend service this signed URL key belongs.
|
|
|
|
|
|
- - -
|
|
|
|
* `project` - (Optional) The ID of the project in which the resource belongs.
|
|
If it is not provided, the provider project is used.
|
|
|
|
|
|
|
|
## Timeouts
|
|
|
|
This resource provides the following
|
|
[Timeouts](/docs/configuration/resources.html#timeouts) configuration options:
|
|
|
|
- `create` - Default is 4 minutes.
|
|
- `delete` - Default is 4 minutes.
|
|
|
|
## Import
|
|
|
|
BackendServiceSignedUrlKey can be imported using any of these accepted formats:
|
|
|
|
```
|
|
$ terraform import google_compute_backend_service_signed_url_key.default projects/{{project}}/global/backendServices/{{backend_service}}/{{name}}
|
|
$ terraform import google_compute_backend_service_signed_url_key.default {{project}}/{{backend_service}}/{{name}}
|
|
$ terraform import google_compute_backend_service_signed_url_key.default {{backend_service}}/{{name}}
|
|
```
|
|
|
|
-> If you're importing a resource with beta features, make sure to include `-provider=google-beta`
|
|
as an argument so that Terraform uses the correct provider to import your resource.
|