Secure S3 Bucket construct used in Enterprise DAPL
Project description
DAPL Secure Bucket Construcs
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 and admins.
- Lifecycle management on objects, move items to Infrequently Access after one month
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 @dapl_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 'dapl-secure-bucket';
export class SecureBucketStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
new SecureBucket(this, 'myEnterpriseLevelSecureBucket',{});
}
}
Project details
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 dapl-secure-bucket-0.0.3.tar.gz.
File metadata
- Download URL: dapl-secure-bucket-0.0.3.tar.gz
- Upload date:
- Size: 36.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebdf2fe585db7ecef982fd71edb117ad9e535e4049b7af1a300641b0cd0e8533
|
|
| MD5 |
31062079ce3d28cfc47f7c78a74065e1
|
|
| BLAKE2b-256 |
c8c1666b7bc290ebf085ed71b18d60cd9d22733627807c80392277ccb60df5fb
|
File details
Details for the file dapl_secure_bucket-0.0.3-py3-none-any.whl.
File metadata
- Download URL: dapl_secure_bucket-0.0.3-py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d366ed29270a1776cb1f4fe2549508e663404ba4680b18974663b60197eed6e3
|
|
| MD5 |
8296713c052f2d33758028c340d556b0
|
|
| BLAKE2b-256 |
98711e6876b22ec50fa421971c3d36050462d251e26a87c5e2596c8d008821e0
|