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
C# / .NET
dotnet add package Gammarer.CDK.AWS.SecureCloudFrontOriginBucket
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-1.3.3.tar.gz
.
File metadata
- Download URL: gammarer.aws-secure-cloudfront-origin-bucket-1.3.3.tar.gz
- Upload date:
- Size: 40.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b5b6f4ecddc85f07877600a12662344ca46f77eba7951187e1c6cb544e1975f |
|
MD5 | 8cf4ec831e0b5be5bd361bfb7f9e60a2 |
|
BLAKE2b-256 | cee04cf56913e330f7c602cdf15081f0316ae4a61c1c720a96b8f59459939d94 |
Provenance
File details
Details for the file gammarer.aws_secure_cloudfront_origin_bucket-1.3.3-py3-none-any.whl
.
File metadata
- Download URL: gammarer.aws_secure_cloudfront_origin_bucket-1.3.3-py3-none-any.whl
- Upload date:
- Size: 39.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2217d9fdc1875fc552f856300c9ca77cf2bd3c745ed89930d9251232b89351df |
|
MD5 | 39b9f07f63ad409cadc67e6101e0c820 |
|
BLAKE2b-256 | 79407b99398b68fff131aef27ef78954631b94faccbefdc67536eb953c62f043 |