This Terraform module creates a Google Cloud URL Map and associated resources. It allows you to define a URL Map with a default service and path matching rules, as well as a Google Cloud Backend Bucket to serve static resources.
The Google Cloud URL Map module provisions the following resources:
-
google_compute_url_map: This resource defines the URL Map and its configuration, including a default service and path matching rules.
-
google_compute_backend_bucket: This resource represents the Google Cloud Storage bucket for serving static resources.
To use this module, include it in your Terraform configuration. Here's an example of how to use it:
module "my_url_map" {
source = "[email protected]:shalb/terraform-gcs-bucket-backend.git?ref=0.0.1"
name = "my-url-map"
bucket_name = "my-bucket"
}
output "url_map_self_link" {
value = module.my_url_map.url_map_self_link
}
Name | Version |
---|---|
terraform | >= 1.2.0 |
>= 4.80.0 |
Name | Version |
---|---|
>= 4.80.0 |
No modules.
Name | Type |
---|---|
google_compute_backend_bucket.main | resource |
google_compute_url_map.main | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
bucket_name | n/a | string |
n/a | yes |
content | n/a | string |
n/a | yes |
location | n/a | string |
n/a | yes |
name | Name for the forwarding rule and prefix for supporting resources | string |
n/a | yes |
Name | Description |
---|---|
url_map_self_link | n/a |