Skip to main content

AWS CloudFront distribution origin S3 bucket.

Project description

GitHub npm (scoped) PyPI

Sonatype Nexus (Releases) GitHub Workflow Status (branch) GitHub release (latest SemVer)

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

File metadata

File hashes

Hashes for gammarer.aws-secure-cloudfront-origin-bucket-0.8.10.tar.gz
Algorithm Hash digest
SHA256 1e5c7b48a7a3e2c4a9d34333165b6700dfd48831f66c71a016f4f58bc36ec53d
MD5 c272f9584769fbeddb2696d65e97327e
BLAKE2b-256 ace1e0636bc51e8e4c7730390f18ddfab5afba5e666bfb7b9006059d2270ae39

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for gammarer.aws_secure_cloudfront_origin_bucket-0.8.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b6120ae2ea96659c12b91bc93d91bb5bbd9096d2feb1000538afd1543104a00d
MD5 506573106916ce3a84e6f5b79ff983d5
BLAKE2b-256 33545c17b4a3a28315aeb6e0386fa07b971a4784558f8f8533907ea3b21e410f

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