{"id":19768704,"url":"https://github.com/terraform-do-modules/terraform-digitalocean-cdn","last_synced_at":"2026-02-25T17:17:09.235Z","repository":{"id":180895297,"uuid":"665874437","full_name":"terraform-do-modules/terraform-digitalocean-cdn","owner":"terraform-do-modules","description":" Terraform module to create CDN resources. DigitalOcean also includes a CDN with DigitalOcean Spaces, our object storage solution, and App Platform, our Platform as a Service solution. Sign up for a DigitalOcean account today to get started.","archived":false,"fork":false,"pushed_at":"2026-02-06T12:54:53.000Z","size":52,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-06T19:25:51.886Z","etag":null,"topics":["clouddrove","devops","digitalocean","digitalocean-cdn","digitalocean-terraform-module","hackoctoberfest","iac-terraform","terra","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terraform-do-modules.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-13T07:39:13.000Z","updated_at":"2026-02-06T12:54:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"be50ea7e-d9c6-47a2-9d36-4d6fd0ca43a9","html_url":"https://github.com/terraform-do-modules/terraform-digitalocean-cdn","commit_stats":null,"previous_names":["terraform-do-modules/terraform-digitalocean-cdn"],"tags_count":3,"template":false,"template_full_name":"clouddrove/terraform-module-template","purl":"pkg:github/terraform-do-modules/terraform-digitalocean-cdn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-do-modules%2Fterraform-digitalocean-cdn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-do-modules%2Fterraform-digitalocean-cdn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-do-modules%2Fterraform-digitalocean-cdn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-do-modules%2Fterraform-digitalocean-cdn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terraform-do-modules","download_url":"https://codeload.github.com/terraform-do-modules/terraform-digitalocean-cdn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-do-modules%2Fterraform-digitalocean-cdn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29360644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T01:03:07.613Z","status":"online","status_checked_at":"2026-02-12T02:00:06.911Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clouddrove","devops","digitalocean","digitalocean-cdn","digitalocean-terraform-module","hackoctoberfest","iac-terraform","terra","terraform","terraform-module"],"created_at":"2024-11-12T04:39:55.058Z","updated_at":"2026-02-25T17:17:09.211Z","avatar_url":"https://github.com/terraform-do-modules.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- This file was automatically generated by the `geine`. Make all changes to `README.yaml` and run `make readme` to rebuild this file. --\u003e\n\n\u003cp align=\"center\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/50652676/62349836-882fef80-b51e-11e9-99e3-7b974309c7e3.png\" width=\"100\" height=\"100\"\u003e\u003c/p\u003e\n\n\n\u003ch1 align=\"center\"\u003e\n    Terraform Digitalocean CDN\n\u003c/h1\u003e\n\n\u003cp align=\"center\" style=\"font-size: 1.2rem;\"\u003e \n    Terraform module to create Digitalocean cdn service resource on Digitalocean.\n     \u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\n\u003ca href=\"https://github.com/terraform-do-modules/terraform-digitalocean-cdn/releases/latest\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/release/terraform-do-modules/terraform-digitalocean-cdn.svg\" alt=\"Latest Release\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/terraform-do-modules/terraform-digitalocean-cdn/actions/workflows/tfsec.yml\"\u003e\n  \u003cimg src=\"https://github.com/terraform-do-modules/terraform-digitalocean-cdn/actions/workflows/tfsec.yml/badge.svg\" alt=\"tfsec\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.terraform.io\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Terraform-v1.4.6-green\" alt=\"Terraform\"\u003e\n\u003c/a\u003e\n\u003ca href=\"LICENSE.md\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-APACHE-blue.svg\" alt=\"Licence\"\u003e\n\u003c/a\u003e\n\n\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\n\u003ca href='https://facebook.com/sharer/sharer.php?u=https://github.com/terraform-do-modules/terraform-digitalocean-cdn'\u003e\n  \u003cimg title=\"Share on Facebook\" src=\"https://user-images.githubusercontent.com/50652676/62817743-4f64cb80-bb59-11e9-90c7-b057252ded50.png\" /\u003e\n\u003c/a\u003e\n\u003ca href='https://www.linkedin.com/shareArticle?mini=true\u0026title=Terraform+Digitalocean+CDN\u0026url=https://github.com/terraform-do-modules/terraform-digitalocean-cdn'\u003e\n  \u003cimg title=\"Share on LinkedIn\" src=\"https://user-images.githubusercontent.com/50652676/62817742-4e339e80-bb59-11e9-87b9-a1f68cae1049.png\" /\u003e\n\u003c/a\u003e\n\u003ca href='https://twitter.com/intent/tweet/?text=Terraform+Digitalocean+CDN\u0026url=https://github.com/terraform-do-modules/terraform-digitalocean-cdn'\u003e\n  \u003cimg title=\"Share on Twitter\" src=\"https://user-images.githubusercontent.com/50652676/62817740-4c69db00-bb59-11e9-8a79-3580fbbf6d5c.png\" /\u003e\n\u003c/a\u003e\n\n\u003c/p\u003e\n\u003chr\u003e\n\n\nWe eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy \u003cb\u003eBigger problems are always solved by breaking them into smaller manageable problems\u003c/b\u003e. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller \u003cb\u003econnected yet manageable pieces\u003c/b\u003e within the infrastructure. \n\nThis module is basically combination of [Terraform open source](https://www.terraform.io/) and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself.\n\nWe have [*fifty plus terraform modules*][terraform_modules]. A few of them are comepleted and are available for open source usage while a few others are in progress.\n\n\n\n\n## Table of Contents\n- [Prerequisites](#prerequisites)\n- [Examples](#examples)\n- [Inputs](#inputs)\n- [Outputs](#outputs)\n- [Related Modules](#related-modules)\n- [Testing](#testing)\n\n## Prerequisites\n\nThis module has a few dependencies: \n- [Terraform 1.4.6](https://learn.hashicorp.com/terraform/getting-started/install.html)\n\n\n\n\n\n\n\n## Examples\n\n\n**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/terraform-do-modules/terraform-digitalocean-cdn/releases).\n\n\nHere is an example of how you can use this module in your inventory structure:\n### Complete Example\n```hcl\n  module \"cdn\" {\n    source             = \"terraform-do-modules/cdn/digitalocean\"\n    version            = \"1.0.0\"\n    origin             = module.spaces.bucket_domain_name\n    ttl                = 3600\n    custom_domain      = \"\"\n    certificate_name   = \"\"\n  }\n```\n##basic example\n```hcl\n  module \"cdn\" {\n    source             = \"terraform-do-modules/cdn/digitalocean\"\n    version            = \"1.0.0\"\n    origin             = module.spaces.bucket_domain_name\n    ttl                = 3600\n  }\n```\n\n\n\n\n\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| certificate\\_name | The unique name of a DigitalOcean managed TLS certificate used for SSL when a custom subdomain is provided. | `string` | `null` | no |\n| custom\\_domain | The fully qualified domain name (FQDN) of the custom subdomain used with the CDN Endpoint. | `string` | `null` | no |\n| enabled | Whether to create the resources. Set to `false` to prevent the module from creating any resources. | `bool` | `true` | no |\n| origin | The fully qualified domain name, (FQDN) for a Space. | `string` | `\"\"` | no |\n| ttl | The time to live for the CDN Endpoint, in seconds. Default is 3600 seconds. | `number` | `3600` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| created\\_at | The date and time when the CDN Endpoint was created. |\n| custom\\_domain | The fully qualified domain name (FQDN) of the custom subdomain used with the CDN Endpoint. |\n| endpoint | The fully qualified domain name (FQDN) from which the CDN-backed content is served. |\n| id | A unique ID that can be used to identify and reference a CDN Endpoint. |\n| origin | The fully qualified domain name, (FQDN) of a space referenced by the CDN Endpoint. |\n| ttl | The time to live for the CDN Endpoint, in seconds. |\n\n\n\n\n\n## Related Modules\n\n- [terraform-digitalocean-spaces](https://github.com/terraform-do-modules/terraform-digitalocean-spaces) — commonly used as CDN origin storage.\n- [terraform-digitalocean-certificate](https://github.com/terraform-do-modules/terraform-digitalocean-certificate) — SSL certificate management for custom CDN domains.\n- [terraform-digitalocean-domain](https://github.com/terraform-do-modules/terraform-digitalocean-domain) — DNS management for custom hostnames.\n\n## Testing\nIn this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system. \n\nYou need to run the following command in the testing folder:\n```hcl\n  go test -run Test\n```\n\n\n\n## Feedback \nIf you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/terraform-do-modules/terraform-digitalocean-cdn/issues), or feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com).\n\nIf you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/terraform-do-modules/terraform-digitalocean-cdn)!\n\n## About us\n\nAt [CloudDrove][website], we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.\n\n\u003cp align=\"center\"\u003eWe are \u003cb\u003e The Cloud Experts!\u003c/b\u003e\u003c/p\u003e\n\u003chr /\u003e\n\u003cp align=\"center\"\u003eWe ❤️  \u003ca href=\"https://github.com/clouddrove\"\u003eOpen Source\u003c/a\u003e and you can check out \u003ca href=\"https://github.com/clouddrove\"\u003eour other modules\u003c/a\u003e to get help with your new Cloud ideas.\u003c/p\u003e\n\n  [website]: https://clouddrove.com\n  [github]: https://github.com/clouddrove\n  [linkedin]: https://cpco.io/linkedin\n  [twitter]: https://twitter.com/clouddrove/\n  [email]: https://clouddrove.com/contact-us.html\n  [terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93\u0026q=terraform-\u0026type=\u0026language=\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-do-modules%2Fterraform-digitalocean-cdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterraform-do-modules%2Fterraform-digitalocean-cdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-do-modules%2Fterraform-digitalocean-cdn/lists"}