2.1.13 • Published 11 months ago

secure_bucket_construct v2.1.13

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

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',{});
  }
}
2.1.12

11 months ago

2.1.13

11 months ago

2.1.10

1 year ago

2.1.11

1 year ago

2.1.8

2 years ago

2.1.9

1 year ago

2.1.7

2 years ago

2.1.4

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.2

2 years ago

2.1.3

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago