Skip to main content

AWS CloudFront distribution origin S3 bucket.

Project description

GitHub npm (scoped) PyPI Nuget 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

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

This version

1.1.1

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

File metadata

File hashes

Hashes for gammarer.aws-secure-cloudfront-origin-bucket-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4f8feb0fd13c24a89666f19efff5d2fab41864c13a19722182de71de369abca5
MD5 d0abc77047866aa7c32f018c81c19554
BLAKE2b-256 b2e78867453ca404eca0cba4b7a2c40b39fd8e10afce5b47c65f55f9a0cbf858

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for gammarer.aws_secure_cloudfront_origin_bucket-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 313800f7c1bcd1670b2861983124149f8d4c23f6cd89913061a632b13b61a975
MD5 bdc8d10d31373405b8543cd97e6b60b7
BLAKE2b-256 aafc1c73a95aa31e3b8d03be13bdd66385646775c6ade6841b1e3fee02809312

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