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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27c8bf41b7cce6dd5b0745704b86a365b56a36281703f54843cacef3f8afc787 |
|
MD5 | ed6e40f74a076dfa38c3ff51a5085b3a |
|
BLAKE2b-256 | eb1a8e9a95e9c75e872db79e93e659243025704d95e1149c6e2776a1298ee4e8 |
Close
Hashes for secure_bucket_construct-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 841ad1b1a0f2b6c5cf92997355cc0f530c1728791622abf12a8c39c6ee5b96a4 |
|
MD5 | 5de627a360a88eff777775696fcb7cbe |
|
BLAKE2b-256 | e9b925c24ba8af0c02541614abd731d2a05f5c3da4fdcc060223e62dcd964009 |