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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d319e66cb745a7b830e957cbf67346759032ac934461b54fb4291a9370edcd2 |
|
MD5 | 296eaf1bca9ca2d15006bd753bb6e958 |
|
BLAKE2b-256 | 918b8b9caa863a92414b09124b04ec0a5b8c9574d2aba804929aab65aa7bb6ad |
Close
Hashes for secure_bucket_construct-2.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9bc187f13b05d430187c90bff8d07203cc571cd52145e69e3beffa16dd71407 |
|
MD5 | f5c86d7026f0e623fee49d9cbf4528bb |
|
BLAKE2b-256 | d68af61a5e792fbb220af699a7f3a2c7fd277e158d613f6f72ce7fa0ece1e5f0 |