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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5760ef1138a16ea0fb921baa8743f65ed97376f4a87a197750765564396c9fb |
|
MD5 | f0bb376f03a7059cafd33035a018ccfa |
|
BLAKE2b-256 | 1d6ab6fe53111a7e7792bd04d49deb64f149107c39922bac1962aa1e1aa56af1 |
Close
Hashes for secure_bucket_construct-2.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 119dc546430a6873e7eaaa2bb93a9c8ed54021044789ffec5a1da97e0cfcb270 |
|
MD5 | 7f231795ed6ce5da1817a94349e6f59a |
|
BLAKE2b-256 | 05d123b1bcbbe6ad19baef1f8f6c19953a91351247da2be1c187866e8103549d |