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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c2a4a5b52fba647e63842c8f5ee8c3b5e05ba16facae572022fabb903a5f92b |
|
MD5 | 8eb5e7b674ca8ab372330f3dea7712bb |
|
BLAKE2b-256 | 1e11b2b42672a36878a0ab38b3d5f77ec69f471894704d49e574d385a4143367 |
Close
Hashes for secure_bucket_construct-2.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b790d7b96e0687e2c9af0cf6493b6066456afb1fc94f563143eec178eeaa02a |
|
MD5 | a1cee9f29c112308ec41676602f71075 |
|
BLAKE2b-256 | 007e9357c7a661d2f586229650fd0df7b80ee0118848841538d8f283899ae83c |