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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36be1ac3b4740092db6dc413f7096ec111f24be813d10b9ae9660b97f7605c97 |
|
MD5 | cf6e3c5af0063064ca48045e6a8c490e |
|
BLAKE2b-256 | a92df6820007d96c4a8bf32ce0275ac8c53a63e5a5019b3eba9a2b008e3d2be7 |
Close
Hashes for secure_bucket_construct-2.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96095035a6975a3341113e81049271acfccca8a2b922d2d8ac94e2e7d128cc6e |
|
MD5 | 3f5f161ea96c70fef1fe52ab1f82a8e4 |
|
BLAKE2b-256 | 5030839f35b51e49f28d91e6773290409afcff8b54e17e569cddcc07d0feba88 |