secure_bucket_construct
Project description
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
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
Close
Hashes for secure-bucket-construct-2.1.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f88893b4a22b270108232a4f69bbe0f3f76c059c19eb22b8f48458de344a7579 |
|
MD5 | 242d9f51701b8a518547e29aa2449709 |
|
BLAKE2b-256 | 60f1c2212140bb3422924a5b01a8fbed3925c608ae48ad2eb31aebe218e78ede |
Close
Hashes for secure_bucket_construct-2.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a551e4aa37ad0d96d154fd093baf45364e1d6b180834f670c8a51a662fca99 |
|
MD5 | fd6d83af044c2f653ff5c43b00923557 |
|
BLAKE2b-256 | 094a71d12e237fff97fd080ffacb38c6f79787c9e34a246cac8ec14e413dafa3 |