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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8dc09c5cf76abe70da23c4d0b56d9b62e3e7cde28b94c71a65434ac07a90ea1 |
|
MD5 | 7aea5ac5b52ce8f5da4fa96395e8770d |
|
BLAKE2b-256 | 6a0866b0375e4749063ca07d8c49ce67f4ac0157e58b7bceff863bef45998f91 |
Close
Hashes for secure_bucket_construct-2.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6f87c05e58f729e55ba93231a7999fae8eed2846531adf0b6b51f55b915963a |
|
MD5 | b50f31217aa221251a8c707e1d4eae6a |
|
BLAKE2b-256 | 0ad439685481bb7e80331a1943d301699eeb29e691a55f728cb391ae558c0921 |