Skip to main content

AWS CloudFront distribution origin S3 bucket.

Project description

AWS Secure CloudFront Origin Bucket (for CDK v2)

An AWS CDK construct library to create secure S3 buckets for CloudFront origin.

Install

TypeScript

npm install @gammarer/aws-secure-cloudfront-origin-bucket
# or
yarn add @gammarer/aws-secure-cloudfront-origin-bucket

Python

pip install gammarer.aws-secure-cloudfront-origin-bucket

Example

TypeScript

npm install @gammarer/aws-secure-cloudfront-origin-bucket
import { SecureCloudFrontOriginBucket } from '@gammarer/aws-secure-cloudfront-origin-bucket';

const oai = new cloudfront.OriginAccessIdentity(stack, 'OriginAccessIdentity');

new SecureCloudFrontOriginBucket(stack, 'SecureCloudFrontOriginBucket', {
  bucketName: 'example-origin-bucket',
  cloudFrontOriginAccessIdentityS3CanonicalUserId: oai.cloudFrontOriginAccessIdentityS3CanonicalUserId,
});

License

This project is licensed under the Apache-2.0 License.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file gammarer.aws-secure-cloudfront-origin-bucket-0.6.4.tar.gz.

File metadata

File hashes

Hashes for gammarer.aws-secure-cloudfront-origin-bucket-0.6.4.tar.gz
Algorithm Hash digest
SHA256 5f6d7f5910a4b771746e95d9222e7be4a8b8e383af5ccfc0bb12bb493731c924
MD5 51865b8d48bb77f131b93bb7f4b006ad
BLAKE2b-256 7f393eaa2ff2d408ced36277394379d5bd6f9bdab519ed986f812b5add6a44a4

See more details on using hashes here.

Provenance

File details

Details for the file gammarer.aws_secure_cloudfront_origin_bucket-0.6.4-py3-none-any.whl.

File metadata

File hashes

Hashes for gammarer.aws_secure_cloudfront_origin_bucket-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 063684350daa35acd12a7e34a62b59482f1f401c347361e24e6291f9ecdfbb91
MD5 ad0d81d6513899d86db9da90ed3211ec
BLAKE2b-256 1f775766b22de604ade703568d2acec9381c62cd5836de213b29b757004f23d0

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page