Skip to main content

secure_bucket_construct

Project description

npm version release

Secure Bucket Construcs

Blog: https://yvovanzee.nl/secure-s3-bucket-construct-with-cdk-version-2

This Secure Bucket construcs extends the S3 Bucket construct. When using this construct, you will create a S3 bucket with default security best practises enabled. These are:

  • Block public access
  • Enabled versioning
  • Enable enforce SSL to connect to bucket
  • Enabled Bucket access logging
  • Encryption of the bucket with a customer managed KMS key with enabled key rotation and trusted account identities.

These best practises are enforced. When creating a SecureBucket with for example versioning disabled, it will be overwritten to enabled.

Usage

install package

npm install @enterprise_secure_bucket

Import the secure bucket construct in your code.

// Import necessary packages
import { Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { SecureBucket } from 'enterprise-secure-bucket';

export class SecureBucketStack extends Stack {
  constructor(scope: Construct, id: string, props?: StackProps) {
    super(scope, id, props);

    new SecureBucket(this, 'myEnterpriseLevelSecureBucket',{});
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

secure-bucket-construct-2.1.13.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

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

secure_bucket_construct-2.1.13-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file secure-bucket-construct-2.1.13.tar.gz.

File metadata

File hashes

Hashes for secure-bucket-construct-2.1.13.tar.gz
Algorithm Hash digest
SHA256 f88893b4a22b270108232a4f69bbe0f3f76c059c19eb22b8f48458de344a7579
MD5 242d9f51701b8a518547e29aa2449709
BLAKE2b-256 60f1c2212140bb3422924a5b01a8fbed3925c608ae48ad2eb31aebe218e78ede

See more details on using hashes here.

File details

Details for the file secure_bucket_construct-2.1.13-py3-none-any.whl.

File metadata

File hashes

Hashes for secure_bucket_construct-2.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 91a551e4aa37ad0d96d154fd093baf45364e1d6b180834f670c8a51a662fca99
MD5 fd6d83af044c2f653ff5c43b00923557
BLAKE2b-256 094a71d12e237fff97fd080ffacb38c6f79787c9e34a246cac8ec14e413dafa3

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