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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b121d3c880b69f97e64e0fcf2616ea8a2a5bc42c7751a45d9f51031e4ddf9cf |
|
MD5 | 930e3cfe599b7c3771bbe4bbba84db44 |
|
BLAKE2b-256 | e1b46e4fcd59ccde6b4959e8ebb1368ae4d368d6b49aa0eeefe3d3e8183e7721 |
Close
Hashes for secure_bucket_construct-2.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abaa3c6dc69d4e0fe2583d29c923db026348578280b8916cd37c742952acd7e9 |
|
MD5 | 5e1f53fa43176b3e6564682787b06486 |
|
BLAKE2b-256 | 113e1b4227b0ba5fbf0797f6ffa4a5e3394cbf41fe3617b45aee13b3ca21e490 |