{"id":20195012,"url":"https://github.com/mich0232/aws-cloudfront-hosting","last_synced_at":"2026-05-12T19:47:24.154Z","repository":{"id":154750486,"uuid":"575095670","full_name":"Mich0232/aws-cloudfront-hosting","owner":"Mich0232","description":"Terraform module creating a AWS Cloudfront distribution from AWS S3 hosting bucket. Custom domain is required to be provided","archived":false,"fork":false,"pushed_at":"2022-12-06T19:06:16.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T19:21:44.101Z","etag":null,"topics":["aws","aws-cloudfront","aws-s3","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mich0232.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-06T18:44:14.000Z","updated_at":"2022-12-06T19:11:56.000Z","dependencies_parsed_at":"2023-05-19T01:01:06.765Z","dependency_job_id":null,"html_url":"https://github.com/Mich0232/aws-cloudfront-hosting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Faws-cloudfront-hosting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Faws-cloudfront-hosting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Faws-cloudfront-hosting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Faws-cloudfront-hosting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mich0232","download_url":"https://codeload.github.com/Mich0232/aws-cloudfront-hosting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241629773,"owners_count":19993710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aws","aws-cloudfront","aws-s3","terraform","terraform-module"],"created_at":"2024-11-14T04:15:19.984Z","updated_at":"2025-11-28T19:05:01.899Z","avatar_url":"https://github.com/Mich0232.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"## AWS Cloudfront hosting\n\nThis package is a Terraform module, responsible for creating hosting from S3 bucket using AWS Cloudfront.  \nHosted website can be access only over HTTPS. \n\nYou will need to provide the domain along with ACM certificate.\n\n![AWS Cloudfront](https://d2908q01vomqb2.cloudfront.net/5b384ce32d8cdef02bc3a139d4cac0a22bb029e8/2018/06/27/thumbnail.png)\n\n### Provisioned resources\n\n - S3 Bucket (versioning: enabled; public access: blocked)\n - Cloudfront distribution\n\n### Input variables\n\n`aws_account_id` - Your AWS Account ID\n\n`project_name` - Custom project name (will be used as a prefix in resources)\n\n`domain` - Domain name.\n\n`domain_certificate_arn` - SSL Certificate issued for domain provided above.\n\n\u003e ⚠️ Certificate must be issued in the **us-east-1** region!\n\n`root_object` - file used as entry (default: index.html)\n\n`price_class` - AWS Cloudfront price class (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PriceClass.html) (default: PriceClass_100)\n\n`allowed_methods` - Allowed HTTP methods. (default: GET; HEAD)\n\n`cached_methods` - Cached HTTP methods. (default: GET; HEAD)\n\n`tags` - Tags passed to the resources.\n\n\n### Output variables:\n\n`domain_name` - Hosting domain name (domain issued by CF, can be used in R53)\n\n`hosted_zone_id` - Hosted zone of CF domain.\n\n\n### Example\n\n```terraform\nmodule \"hosting\" {\n  source = \"https://github.com/Mich0232/aws-cloudfront-hosting.git\"\n\n  project_name           = \"myProject\"\n  aws_account_id         = var.aws_account_id\n  domain                 = \"https://mydomain.com\"\n  domain_certificate_arn = aws_acm_certificate_validation.main.certificate_arn\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmich0232%2Faws-cloudfront-hosting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmich0232%2Faws-cloudfront-hosting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmich0232%2Faws-cloudfront-hosting/lists"}