https://github.com/gammarers/aws-secure-bucket
This is a Simple S3 Secure Bucket.
https://github.com/gammarers/aws-secure-bucket
aws aws-cdk bucket cdk kms s3 secure
Last synced: 5 months ago
JSON representation
This is a Simple S3 Secure Bucket.
- Host: GitHub
- URL: https://github.com/gammarers/aws-secure-bucket
- Owner: gammarers
- License: apache-2.0
- Created: 2023-01-27T03:05:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-01-25T16:44:47.000Z (5 months ago)
- Last Synced: 2026-01-26T09:19:16.848Z (5 months ago)
- Topics: aws, aws-cdk, bucket, cdk, kms, s3, secure
- Language: TypeScript
- Homepage:
- Size: 2.04 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS Secure Bucket
[](https://github.com/gammarers/aws-secure-bucket/blob/main/LICENSE)
[](https://www.npmjs.com/package/@gammarers/aws-secure-bucket)
[](https://pypi.org/project/gammarers.aws-secure-bucket/)
[](https://www.nuget.org/packages/Gammarers.CDK.AWS.SecureBucket/)
[](https://github.com/gammarers/aws-secure-bucket/actions/workflows/release.yml)
[](https://github.com/gammarers/aws-secure-bucket/releases)
[](https://constructs.dev/packages/@gammarers/aws-secure-bucket)
This is a Simple S3 Secure Bucket.
- Bucket Access Control is Private
- Public Read Access is false
- Enforce SSL
- All Block public access
- Require encryption
## Additional Properties
| **Name** | **Type** | **Default** | **Description** |
| --- | --- | --- | --- |
| bucketType | SecureBucketType | SecureBucketType.DEFAULT_BUCKET | The type of the bucket.
Available types: DEFAULT(⚠️ **Deprecated**: Use bucketType property instead.),
SINGLE_PIPELINE_ARTIFACT(⚠️ **Deprecated**: Use bucketType property instead.),
MULTI_PIPELINE_ARTIFACT(⚠️ **Deprecated**: Use bucketType property instead.),
CLOUD_FRONT_ORIGIN(⚠️ **Deprecated**: Use bucketType property instead.),
The type of the bucket.
Available types: DEFAULT_BUCKET,
SINGLE_REGION_DEPLOYMENT_PIPELINE_ARTIFACT_BUCKET,
MULTI_REGION_DEPLOYMENT_PIPELINE_ARTIFACT_BUCKET,
CLOUD_FRONT_ORIGIN_BUCKET |
| isPipelineArtifactBucket | boolean | false | ⚠️ **Deprecated**: Use bucketType property instead. If you are setting a custom Qualifier and using it as the artifact bucket for the CDK pipeline, set it to true. |
| isCloudFrontOriginBucket | boolean | false | ⚠️ **Deprecated**: Use bucketType property instead. If you are using it as the CloudFront origin bucket, set it to true. |
## Install
### TypeScript
#### install by npm
```shell
npm install @gammarers/aws-secure-bucket
```
#### install by yarn
```shell
yarn add @gammarers/aws-secure-bucket
```
### Python
```shell
pip install gammarers.aws-secure-bucket
```
### C# / .Net
```shell
dotnet add package Gammarers.CDK.AWS.SecureBucket
```
## Example
```typescript
import { SecureBucket } from '@gammarers/aws-secure-bucket';
const bucket = new SecureBucket(stack, 'SecureBucket', {
bucketName: 'example-secure-bucket',
});
```