Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shalb/terraform-gcs-bucket-backend


https://github.com/shalb/terraform-gcs-bucket-backend

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Terraform Module: Google Cloud URL Map

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.

## Overview

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.

## Usage

To use this module, include it in your Terraform configuration. Here's an example of how to use it:

```hcl
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
}
```

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.2.0 |
| [google](#requirement\_google) | >= 4.80.0 |

## Providers

| Name | Version |
|------|---------|
| [google](#provider\_google) | >= 4.80.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [google_compute_backend_bucket.main](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_backend_bucket) | resource |
| [google_compute_url_map.main](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_url_map) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [bucket\_name](#input\_bucket\_name) | n/a | `string` | n/a | yes |
| [content](#input\_content) | n/a | `string` | n/a | yes |
| [location](#input\_location) | n/a | `string` | n/a | yes |
| [name](#input\_name) | Name for the forwarding rule and prefix for supporting resources | `string` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [url\_map\_self\_link](#output\_url\_map\_self\_link) | n/a |