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.1.tar.gz.

File metadata

File hashes

Hashes for gammarer.aws-secure-cloudfront-origin-bucket-0.6.1.tar.gz
Algorithm Hash digest
SHA256 8591b728e11caa3d3074b8f35f75a96b902bdcdcd988eb484706323ffb10d7dd
MD5 213d0c08cf9b47a6c07d211b2d708dde
BLAKE2b-256 79bf91e3a5c0ac2f0c7b516533b7514ae7e9afe6d8b2a3adb1c1e8d2a76f3722

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for gammarer.aws_secure_cloudfront_origin_bucket-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf76f95aa6b4a0a08346c3173adf8c72d78f6e91f3e86a7c2bd501faaf85580e
MD5 a7d928e573b6214e3b382d79924a3b4f
BLAKE2b-256 acbbe8114aba2c7939278cf8608df3a6eab524f785f829fb0e4d8d4cc4ed3cab

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