2.0.2 • Published 8 months ago
@gammarers/aws-secure-cloudfront-origin-bucket v2.0.2
AWS Secure CloudFront Origin Bucket (for CDK v2)
An AWS CDK construct library to create secure S3 buckets for CloudFront origin.
Install
TypeScript
install by npm
npm install @gammarers/aws-secure-cloudfront-origin-bucket
install by yarn
yarn add @gammarers/aws-secure-cloudfront-origin-bucket
install by pnpm
pnpm add @gammarers/aws-secure-cloudfront-origin-bucket
install by bun
bun add @gammarers/aws-secure-cloudfront-origin-bucket
Python
pip install gammarers.aws-secure-cloudfront-origin-bucket
C# / .NET
dotnet add package gammarers.CDK.AWS.SecureCloudFrontOriginBucket
Example
for OAI(Origin Access Identity)
import { SecureCloudFrontOriginBucket, SecureCloudFrontOriginType } from '@gammarers/aws-secure-cloudfront-origin-bucket';
const oai = new cloudfront.OriginAccessIdentity(stack, 'OriginAccessIdentity');
new SecureCloudFrontOriginBucket(stack, 'SecureCloudFrontOriginBucket', {
bucketName: 'example-origin-bucket',
cloudFrontOriginType: SecureCloudFrontOriginType.ORIGIN_ACCESS_IDENTITY,
cloudFrontOriginAccessIdentityS3CanonicalUserId: oai.cloudFrontOriginAccessIdentityS3CanonicalUserId,
});
for OAC(Origin Access Control)
import { SecureCloudFrontOriginBucket, SecureCloudFrontOriginType } from '@gammarers/aws-secure-cloudfront-origin-bucket';
declare const distribution: cloudfront.Distribution;
new SecureCloudFrontOriginBucket(stack, 'SecureCloudFrontOriginBucket', {
bucketName: 'example-origin-bucket',
cloudFrontOriginType: SecureCloudFrontOriginType.ORIGIN_ACCESS_CONTROL,
cloudFrontArn: `arn:aws:cloudfront::123456789:distribution/${distribution.distributionId}`,
});
License
This project is licensed under the Apache-2.0 License.
2.0.2
8 months ago
2.0.1
8 months ago
2.0.0
9 months ago
1.6.20
9 months ago
1.6.21
9 months ago
1.6.19
9 months ago
1.6.18
9 months ago
1.6.17
10 months ago
1.6.15
10 months ago
1.6.16
10 months ago
1.6.14
10 months ago
1.6.4
1 year ago
1.5.5
1 year ago
1.6.3
1 year ago
1.6.2
1 year ago
1.6.1
1 year ago
1.6.0
1 year ago
1.6.9
11 months ago
1.6.11
11 months ago
1.6.8
12 months ago
1.6.10
11 months ago
1.6.7
12 months ago
1.6.13
10 months ago
1.6.6
12 months ago
1.6.12
11 months ago
1.6.5
1 year ago
1.5.4
1 year ago
1.5.3
1 year ago
1.5.2
1 year ago
1.5.1
1 year ago
1.5.0
1 year ago