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

File metadata

File hashes

Hashes for gammarer.aws-secure-cloudfront-origin-bucket-0.6.9.tar.gz
Algorithm Hash digest
SHA256 09a2ebd80f80573ad9716c62891d2fd3b7a5ffac017cc8d2323e27b855948667
MD5 ac4f212245e3edea73f64cce5479c244
BLAKE2b-256 bb75eb5697658075456054ab05ad5a8c8a9eee27b8d5d462e5bdfa6a75ee225c

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for gammarer.aws_secure_cloudfront_origin_bucket-0.6.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6248cc580ecb292d6e84606694c90c955043fce6c78444a3de02e688add714e1
MD5 a5464f8186a15b12fc643da33ea3a3ca
BLAKE2b-256 3a437512bd7550ca2794a201ccd0994bbbd4164a55a4565c5d477ade0faef839

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