Skip to content

shalb/terraform-gcs-bucket-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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 >= 1.2.0
google >= 4.80.0

Providers

Name Version
google >= 4.80.0

Modules

No modules.

Resources

Name Type
google_compute_backend_bucket.main resource
google_compute_url_map.main resource

Inputs

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

Outputs

Name Description
url_map_self_link n/a

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages