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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f06342bc9c15a122a581e5bd7854426dd61ab7428b9e4f221a8227669e0ba526 |
|
MD5 | 613c02e12dd6227cc3cccd4aaa0c72c5 |
|
BLAKE2b-256 | 6193ae4154ba1da46576bb64b498ef477474d7f96ec26782e1df0132647afd99 |
Close
Hashes for secure_bucket_construct-2.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d09343ff68fa520f0e19f8649d5bfaf9d1740c103d1fb76d0f5ff7e5445971be |
|
MD5 | 5d1157914ae627ade2d3581d66248af9 |
|
BLAKE2b-256 | 41591d610e828c0805c0325381e6804dc7ca083b078256c8efe15e5d33deddfd |