dapl-secure-bucket-0.0.3
توضیحات
Secure S3 Bucket construct used in Enterprise DAPL
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dapl-secure-bucket-0.0.3 |
| نام | dapl-secure-bucket |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yvo van Zee<yvo.vanzee@xebia.com> |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/yvo.van.zee/dapl_secure_bucket.git |
| آدرس اینترنتی | https://pypi.org/project/dapl-secure-bucket/ |
| مجوز | Apache-2.0 |
[](https://github.com/yvthepief/dapl_secure_bucket/actions/workflows/release.yml)
# 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
```bash
npm install @dapl_secure_bucket
```
## Import the secure bucket construct in your code.
```python
// 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',{});
}
}
```
نیازمندی
| مقدار | نام |
|---|---|
| <3.0.0,>=2.71.0 | aws-cdk-lib |
| <11.0.0,>=10.0.5 | constructs |
| <2.0.0,>=1.80.0 | jsii |
| >=0.0.3 | publication |
| ~=2.13.3 | typeguard |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| ~=3.7 | Python |
نحوه نصب
نصب پکیج whl dapl-secure-bucket-0.0.3:
pip install dapl-secure-bucket-0.0.3.whl
نصب پکیج tar.gz dapl-secure-bucket-0.0.3:
pip install dapl-secure-bucket-0.0.3.tar.gz