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
Close
Hashes for gammarer.aws-secure-cloudfront-origin-bucket-0.6.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f56570553b9f77a632b1e7a397816353a15f05af0c993d809f77d9a17823e02 |
|
MD5 | cecd4dfb59c94884fca59f88e9d917a0 |
|
BLAKE2b-256 | 56b714074306bd27c70cbc95f95aa1ed1d0a08543fa8176d3b620df5b1ca8921 |
Close
Hashes for gammarer.aws_secure_cloudfront_origin_bucket-0.6.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de0504ce7f9fdbe4bcd26c5b97a403c7c937cfbd91421c0b642b66343951fda2 |
|
MD5 | e3034dcf9807273cb10e6ca64c73c148 |
|
BLAKE2b-256 | 7573325709806011936263651f9a4cc204160215eea42f1913ede3d113542c16 |