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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84981cf113989207a1af84e14398b2b8043446454d63dbe66ce5199e13d1055f |
|
MD5 | 45f7d4232066f9a34d373145ff7e979a |
|
BLAKE2b-256 | a1a649c7ce5040990d15030fd5274f1a63960465b87f444ce0951870e8676f0e |
Close
Hashes for secure_bucket_construct-2.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e54d7d92e08962b046ad982ac561579705e9ad7b9aa2d90c57122f95c9c0d961 |
|
MD5 | 5a90d99dfb7f27b144e3c8bb0e2c5b72 |
|
BLAKE2b-256 | d34ce89b201324b4cb5ddde435a2037cc3a1afe74dc36cc2b8343f2aaef81602 |