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

File metadata

File hashes

Hashes for gammarer.aws-secure-cloudfront-origin-bucket-0.6.11.tar.gz
Algorithm Hash digest
SHA256 5eb8aaaeed5b1593e4fa017e156123d3b4795dd1f92c3fa7feead04b8ba4665e
MD5 0391b643f27eb283b5e9c88acb4ae095
BLAKE2b-256 9213918799453eb532868831316f011e251c1d08cfde54fbd575aa0f992b69bc

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for gammarer.aws_secure_cloudfront_origin_bucket-0.6.11-py3-none-any.whl
Algorithm Hash digest
SHA256 a4d385d839645f7f94e42926bd3bb767b694d540a5a24d7a5e201d4cde6d338c
MD5 32a8f44ae6b341a4ba0f22ec807d5652
BLAKE2b-256 5790310230f6170b57bb56a2cda358eb5768c23f010520ef66b616019c120375

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