Skip to main content

This project provides a CDK construct for creating private S3 bucket.

Project description

PRs Welcome GitHub npm (scoped) PyPI Nuget Sonatype Nexus (Releases) GitHub Workflow Status (branch) GitHub release (latest SemVer)

AWS CDK Private Bucket

This project provides a CDK construct to create an S3 Bucket with some security pre-sets. It uses usual s3.BucketProps and overrides these key-value pairs:

{
  blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
  enforceSSL: true,
  encryption: s3.BucketEncryption.S3_MANAGED,
}

The result is a privacy-oriented S3 Bucket.

Install

TypeScript

npm install @pepperize/cdk-private-bucket

or

yarn add @pepperize/cdk-private-bucket

Python

pip install pepperize.cdk-private-bucket

C# / .Net

dotnet add package Pepperize.CDK.PrivateBucket

Java

<dependency>
  <groupId>com.pepperize</groupId>
  <artifactId>cdk-private-bucket</artifactId>
  <version>${cdkPrivateBucket.version}</version>
</dependency>

Example

npm install @pepperize/cdk-private-bucket

See API.md.

import { PrivateBucket } from "@pepperize/cdk-private-bucket";

const bucket = new PrivateBucket(this, "PrivateBucket", {});

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

pepperize.cdk-private-bucket-0.0.330.tar.gz (33.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pepperize.cdk_private_bucket-0.0.330-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file pepperize.cdk-private-bucket-0.0.330.tar.gz.

File metadata

File hashes

Hashes for pepperize.cdk-private-bucket-0.0.330.tar.gz
Algorithm Hash digest
SHA256 83523a9eb613114de08a83c027980763e921334a3c273c3207a7486b470bea09
MD5 3343cdfe5ad74de9c798960198364103
BLAKE2b-256 3071388d1042d4d87d1ea514e2b8aed6ee9e1eb21d8d67efc147bc0ecb17ea5e

See more details on using hashes here.

File details

Details for the file pepperize.cdk_private_bucket-0.0.330-py3-none-any.whl.

File metadata

File hashes

Hashes for pepperize.cdk_private_bucket-0.0.330-py3-none-any.whl
Algorithm Hash digest
SHA256 4fb6dad9983072ffab0a1949a2081635e29867b5014de927e7186f8cbdfa002b
MD5 4f2b086a2c9e42b65ea2caf8475fe282
BLAKE2b-256 f90229c056db3e53a65f61ff2d080e24c8d8ee64d0c479c475599a73701a488f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page