{"id":19657895,"url":"https://github.com/gammarers/aws-secure-cloudfront-origin-bucket","last_synced_at":"2025-09-16T16:31:53.133Z","repository":{"id":65664665,"uuid":"587240653","full_name":"gammarers/aws-secure-cloudfront-origin-bucket","owner":"gammarers","description":"secure cloudfront origin bucket","archived":true,"fork":false,"pushed_at":"2025-04-06T17:33:46.000Z","size":1560,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-29T02:30:22.753Z","etag":null,"topics":["aws","aws-cdk","bucket","cdk","s3","secure"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/gammarers.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-10T09:41:19.000Z","updated_at":"2025-04-10T13:31:08.000Z","dependencies_parsed_at":"2023-09-15T11:44:27.756Z","dependency_job_id":"5892d9bf-d17f-4898-81f1-fd5c455f4d85","html_url":"https://github.com/gammarers/aws-secure-cloudfront-origin-bucket","commit_stats":{"total_commits":348,"total_committers":4,"mean_commits":87.0,"dds":0.3017241379310345,"last_synced_commit":"fa58edc7d1dbee2e7704932291b017a86406f55b"},"previous_names":["yicr/secure-cloudfront-origin-bucket","gammarer/aws-secure-cloudfront-origin-bucket","gammarers/aws-secure-cloudfront-origin-bucket","yicr/aws-secure-cloudfront-origin-bucket"],"tags_count":314,"template":false,"template_full_name":null,"purl":"pkg:github/gammarers/aws-secure-cloudfront-origin-bucket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-secure-cloudfront-origin-bucket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-secure-cloudfront-origin-bucket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-secure-cloudfront-origin-bucket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-secure-cloudfront-origin-bucket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gammarers","download_url":"https://codeload.github.com/gammarers/aws-secure-cloudfront-origin-bucket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-secure-cloudfront-origin-bucket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275289712,"owners_count":25438493,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"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":["aws","aws-cdk","bucket","cdk","s3","secure"],"created_at":"2024-11-11T15:34:50.856Z","updated_at":"2025-09-16T16:31:52.808Z","avatar_url":"https://github.com/gammarers.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Secure CloudFront Origin Bucket (for CDK v2)\n\n[![GitHub](https://img.shields.io/github/license/gammarers/aws-secure-cloudfront-origin-bucket?style=flat-square)](https://github.com/gammarers/aws-secure-cloudfront-origin-bucket/blob/main/LICENSE)\n[![npm (scoped)](https://img.shields.io/npm/v/@gammarers/aws-secure-cloudfront-origin-bucket?style=flat-square)](https://www.npmjs.com/package/@gammarers/aws-secure-cloudfront-origin-bucket)\n[![PyPI](https://img.shields.io/pypi/v/gammarers.aws-secure-cloudfront-origin-bucket?style=flat-square)](https://pypi.org/project/gammarers.aws-secure-cloudfront-origin-bucket/)\n[![Nuget](https://img.shields.io/nuget/v/Gammarers.CDK.AWS.SecureCloudFrontOriginBucket?style=flat-square)](https://www.nuget.org/packages/Gammarers.CDK.AWS.ScureCloudFrontOriginBucket/)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarers/aws-secure-cloudfront-origin-bucket/release.yml?branch=main\u0026label=release\u0026style=flat-square)](https://github.com/gammarers/aws-secure-cloudfront-origin-bucket/actions/workflows/release.yml)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarers/aws-secure-cloudfront-origin-bucket?sort=semver\u0026style=flat-square)](https://github.com/gammarers/aws-secure-cloudfront-origin-bucket/releases)\n\n[![View on Construct Hub](https://constructs.dev/badge?package=@gammarers/aws-secure-cloudfront-origin-bucket)](https://constructs.dev/packages/@gammarers/aws-secure-cloudfront-origin-bucket)\n\nAn AWS CDK construct library to create secure S3 buckets for CloudFront origin.\n\n\u003e [!WARNING]\n\u003e v2.1.0: remove origin access identity(oai) support\n\n## Install\n\n### TypeScript\n\n#### install by npm\n\n```shell\nnpm install @gammarers/aws-secure-cloudfront-origin-bucket\n```\n#### install by yarn\n\n```shell\nyarn add @gammarers/aws-secure-cloudfront-origin-bucket\n```\n#### install by pnpm\n\n```shell\npnpm add @gammarers/aws-secure-cloudfront-origin-bucket\n```\n#### install by bun\n\n```shell\nbun add @gammarers/aws-secure-cloudfront-origin-bucket\n```\n\n### Python\n\n```shell\npip install gammarers.aws-secure-cloudfront-origin-bucket\n```\n\n### C# / .NET\n\n```shell\ndotnet add package gammarers.CDK.AWS.SecureCloudFrontOriginBucket\n```\n\n## Example\n\n### for OAC(Origin Access Control)\n\n```typescript\nimport { SecureCloudFrontOriginBucket, SecureCloudFrontOriginType } from '@gammarers/aws-secure-cloudfront-origin-bucket';\n\nconst originBucket = new SecureCloudFrontOriginBucket(stack, 'SecureCloudFrontOriginBucket', {\n  bucketName: 'example-origin-bucket',\n});\n\nconst distribution = new cloudfront.Distribution(this, 'Distribution', {\n  defaultRootObject: 'index.html',\n  defaultBehavior: {\n    origin: origins.S3BucketOrigin.withOriginAccessControl(originBucket),\n  },\n});\n```\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammarers%2Faws-secure-cloudfront-origin-bucket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgammarers%2Faws-secure-cloudfront-origin-bucket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammarers%2Faws-secure-cloudfront-origin-bucket/lists"}