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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file secure-bucket-construct-2.1.13.tar.gz.
File metadata
- Download URL: secure-bucket-construct-2.1.13.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f88893b4a22b270108232a4f69bbe0f3f76c059c19eb22b8f48458de344a7579
|
|
| MD5 |
242d9f51701b8a518547e29aa2449709
|
|
| BLAKE2b-256 |
60f1c2212140bb3422924a5b01a8fbed3925c608ae48ad2eb31aebe218e78ede
|
File details
Details for the file secure_bucket_construct-2.1.13-py3-none-any.whl.
File metadata
- Download URL: secure_bucket_construct-2.1.13-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91a551e4aa37ad0d96d154fd093baf45364e1d6b180834f670c8a51a662fca99
|
|
| MD5 |
fd6d83af044c2f653ff5c43b00923557
|
|
| BLAKE2b-256 |
094a71d12e237fff97fd080ffacb38c6f79787c9e34a246cac8ec14e413dafa3
|