{"id":19580479,"url":"https://github.com/dod-iac/terraform-aws-cloudfront-bucket","last_synced_at":"2026-05-15T09:38:44.530Z","repository":{"id":53828209,"uuid":"255458841","full_name":"dod-iac/terraform-aws-cloudfront-bucket","owner":"dod-iac","description":"AWS S3 Bucket used to host files served by AWS CloudFront.","archived":false,"fork":false,"pushed_at":"2021-03-12T00:47:26.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-09T05:18:01.208Z","etag":null,"topics":["aws","cloudfront","terraform"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/dod-iac/cloudfront-bucket/aws","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dod-iac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-13T22:54:50.000Z","updated_at":"2021-08-04T18:49:24.000Z","dependencies_parsed_at":"2022-08-22T04:20:39.302Z","dependency_job_id":null,"html_url":"https://github.com/dod-iac/terraform-aws-cloudfront-bucket","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-cloudfront-bucket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-cloudfront-bucket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-cloudfront-bucket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dod-iac%2Fterraform-aws-cloudfront-bucket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dod-iac","download_url":"https://codeload.github.com/dod-iac/terraform-aws-cloudfront-bucket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240849053,"owners_count":19867617,"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","cloudfront","terraform"],"created_at":"2024-11-11T07:26:41.004Z","updated_at":"2026-05-15T09:38:44.490Z","avatar_url":"https://github.com/dod-iac.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Usage\n\nCreates an AWS S3 Bucket used to host files served by AWS CloudFront.\n\n```hcl\nmodule \"cloudfront_bucket\" {\n  source = \"dod-iac/cloudfront-bucket/aws\"\n\n  aws_cloudfront_origin_access_identity_arn = aws_cloudfront_origin_access_identity.main.iam_arn\n  name = format(\"app-%s-www-%s-%s\", var.application, var.environment, var.region)\n  logging_target_bucket = var.logs_bucket_name\n  tags = {\n    Application = var.application\n    Environment = var.environment\n    Automation  = \"Terraform\"\n  }\n}\n```\n\nPass an aliased provider to the module as `aws`, to change the region the bucket is in.\n\n```hcl\nmodule \"cloudfront_bucket\" {\n  source = \"dod-iac/cloudfront-bucket/aws\"\n\n  providers = {\n    aws           = aws.us-east-1\n  }\n\n  aws_cloudfront_origin_access_identity_arn = aws_cloudfront_origin_access_identity.main.iam_arn\n  name = format(\"app-%s-www-%s-%s\", var.application, var.environment, \"us-east-1\")\n  logging_target_bucket = var.logs_bucket_name\n  tags = {\n    Application = var.application\n    Environment = var.environment\n    Automation  = \"Terraform\"\n  }\n}\n```\n\n## Terraform Version\n\nTerraform 0.13. Pin module version to ~\u003e 2.0.0 . Submit pull-requests to master branch.\n\nTerraform 0.12. Pin module version to ~\u003e 1.0.0 . Submit pull-requests to terraform012 branch.\n\nTerraform 0.11 is not supported.\n\n## Upgrade Paths\n\n### Upgrading from 1.0.0 to 2.x.x\n\nVersion 2.x.x removes the `region` variable.  Pass an aliased provider to the module as `aws`, to change the region the bucket is in.\n\n## License\n\nThis project constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105.  However, because the project utilizes code licensed from contributors and other third parties, it therefore is licensed under the MIT License.  See LICENSE file for more information.\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| terraform | \u003e= 0.13 |\n| aws | ~\u003e 3.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| aws | ~\u003e 3.0 |\n\n## Modules\n\nNo Modules.\n\n## Resources\n\n| Name |\n|------|\n| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) |\n| [aws_s3_bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) |\n| [aws_s3_bucket_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy) |\n| [aws_s3_bucket_public_access_block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block) |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| aws\\_cloudfront\\_origin\\_access\\_identity\\_arn | The ARN of the CloudFront Origin Access Identity (OAI) granted access to read from the bucket. | `string` | n/a | yes |\n| logging\\_target\\_bucket | The name of the bucket that will receive the log objects. | `string` | n/a | yes |\n| logging\\_target\\_prefix | To specify a key prefix for log objects.  Defaults to \"s3/[name]/\". | `string` | `null` | no |\n| name | The name of the AWS S3 Bucket used to host files served by AWS CloudFront. | `string` | n/a | yes |\n| tags | Tags to apply to the AWS S3 Bucket. | `map(string)` | `{}` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| arn | The ARN of the AWS S3 Bucket used to host files served by AWS CloudFront. |\n| bucket\\_regional\\_domain\\_name | The bucket regional domain name of the AWS S3 Bucket used to host files served by AWS CloudFront. |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdod-iac%2Fterraform-aws-cloudfront-bucket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdod-iac%2Fterraform-aws-cloudfront-bucket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdod-iac%2Fterraform-aws-cloudfront-bucket/lists"}