cdn
Ahmed-Amine-Soltani/cdn/gcp
Terraform CDN Module This modules makes it easy to host a static website on Cloud Storage bucket for a domain you own behind a CDN . The ressources that will be created in your project: - An external IP address link link . - An entry in Cloud DNS to map the IP address to the domain name link link . - A GCS bucket link link . - A https external load balancer with CDN link link . - A http external load balancer to redirect HTTP traffic to HTTPS link . - A managed certificate for HTTPS link link . Usage ------ You can go to the examples folder, however the usage of the module could be like this in your own main.tf file: ``hcl module "cdn" { source = "Ahmed-Amine-Soltani/cdn/gcp" version = "2.0.0" dns_name = "example" google_dns_managed_zone_name = "my-google-dns-managed-zone-name" google_stor
| Name | Type | Description | Default |
|---|---|---|---|
| dns_name | string | this dns_name will be concatenated with the domain name of your public zone to c | "" |
| google_dns_managed_zone_name | string | your google managed zone name. | "" |
| google_storage_bucket_name | string | the bucket name. | "" |
| google_compute_project_default_network_tier | string | The default network tier to be configured for the project. This field can take t | "PREMIUM" |
| google_compute_global_address_type | string | The type of the address to reserve. | "EXTERNAL" |
| google_storage_bucket | list(object({ location | the bucket configuration | [
{
"force_destroy": true,
"lo |
| folder_path | string | Path to your folder | "" |
lb_fqdn — the FQDN of your load balancer with which you access your website.dns_managed_zone_name — your google managed zone name.external_ip_reserved — the ip address which will be mapped to the FQDN in the configuration of your gcp public zone.