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
Java
Add the following to pom.xml:
<dependency>
<groupId>com.gammarer</groupId>
<artifactId>aws-secure-cloudfront-origin-bucket</artifactId>
</dependency>
Example
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.9.6.tar.gz
.
File metadata
- Download URL: gammarer.aws-secure-cloudfront-origin-bucket-0.9.6.tar.gz
- Upload date:
- Size: 41.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a19acd264f075e5932fd90f93e0659dda721ef3af9bb9f3d249c042b4c0c256 |
|
MD5 | 811edef3763ce7bb9ed5e285f8af654f |
|
BLAKE2b-256 | fca75794191e20191758746db30091464f83a8413ffee9925eeab01b67b62fff |
Provenance
File details
Details for the file gammarer.aws_secure_cloudfront_origin_bucket-0.9.6-py3-none-any.whl
.
File metadata
- Download URL: gammarer.aws_secure_cloudfront_origin_bucket-0.9.6-py3-none-any.whl
- Upload date:
- Size: 40.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba8b10e415f9356dbbbd7dacf69476844896dd01befb97c6c592cfd1d57ba7bf |
|
MD5 | 4460f11a2cb3f7881ca1113eace36386 |
|
BLAKE2b-256 | 226823b408b7b72f4d22118989a9b6a0a126d9dbf5c8cc4b41fb961d4ba9abb6 |