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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d70a5fdd827fd103e91c747237895ee0b691f967f9d3612134a6ff215fecde8 |
|
MD5 | 3a0ad7b3e1d0590dcdca0a7fddcddcef |
|
BLAKE2b-256 | 7d032211b20568c9aaad32545c23639dc757eff7ca11b69ab5ec866c7d9836be |
Close
Hashes for secure_bucket_construct-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72e2cb723da99cd4a4c9a6b563f0ce0ae9a4089256874b7d83d51d297ffb7e3d |
|
MD5 | d9c8422275edd51c034ac24513c02345 |
|
BLAKE2b-256 | e63e276e39fb409b8031cbbbe8e0f388d11057faacdae1170b3b6acf01a96ab5 |