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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45e863240a95cb7b18e998390d15d7c5cdae53a8cdab3b6c099a5507e695529b |
|
MD5 | b71a4460eecb9141614b2064027af1a3 |
|
BLAKE2b-256 | 97824aea694280628a2485ab549c8eca82c44bbe455c07a01409291a90ef0888 |
Close
Hashes for secure_bucket_construct-2.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c2ccaef9ba842498ae424ce32ce99d302e58aa7f11c5cd058198776142d4654 |
|
MD5 | 674aea2f9ebc243208625f32887d8bff |
|
BLAKE2b-256 | 295ca0e7b3878e4c860cbd6805e264fddbefb1d3af7a8ae44975d0e16ed2a0ff |