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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5263ab82be97579cc1c9b15325ce6b840d662d73f63cc75277885e2088ac2d57 |
|
MD5 | 8a007f978f74960caf372990d8d67df7 |
|
BLAKE2b-256 | 139831f68bd4f84157f41e539db3a29c55b0a894391a9181fc97048c6509e293 |
Close
Hashes for secure_bucket_construct-2.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0671c8e5b6b880f5486e7b2ed1c13130050c5b14e9818bd383838a47578197ae |
|
MD5 | ba1e0017b9a7f36fc8e826af5661f40b |
|
BLAKE2b-256 | c599a1f495b1e0c4ca058317e2e32b0b7c71e954c3b7de91329a8d8a58d3565d |