cdn

Ahmed-Amine-Soltani/cdn/gcp

Terraform Module HCL GCP
Install
module "cdn" {
source = "Ahmed-Amine-Soltani/cdn/gcp"
version = "2.0.0"
}
plain text: /constructs/tfmod-ahmed-amine-soltani-cdn-gcp/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (7)
NameTypeDescriptionDefault
dns_namestringthis dns_name will be concatenated with the domain name of your public zone to c""
google_dns_managed_zone_namestringyour google managed zone name.""
google_storage_bucket_namestringthe bucket name.""
google_compute_project_default_network_tierstringThe default network tier to be configured for the project. This field can take t"PREMIUM"
google_compute_global_address_typestringThe type of the address to reserve."EXTERNAL"
google_storage_bucketlist(object({ location the bucket configuration[ { "force_destroy": true, "lo
folder_pathstringPath to your folder""
Outputs (3)
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.
Resources (12)
google_compute_backend_bucketgoogle_compute_global_addressgoogle_compute_global_forwarding_rulegoogle_compute_managed_ssl_certificategoogle_compute_project_default_network_tiergoogle_compute_target_http_proxygoogle_compute_target_https_proxygoogle_compute_url_mapgoogle_dns_record_setgoogle_storage_bucketgoogle_storage_bucket_iam_membernull_resource
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud GCP
★ Stars1
Forks2
Total downloads5.1k
Inputs7
Outputs3
Resources12
NamespaceAhmed-Amine-Soltani
Updated