https://github.com/gammarers/aws-secure-log-bucket
secure multiple transition phases in a single lifecycle policy bucket.
https://github.com/gammarers/aws-secure-log-bucket
Last synced: 4 months ago
JSON representation
secure multiple transition phases in a single lifecycle policy bucket.
- Host: GitHub
- URL: https://github.com/gammarers/aws-secure-log-bucket
- Owner: gammarers
- License: apache-2.0
- Created: 2023-03-06T06:02:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T04:34:20.000Z (about 1 year ago)
- Last Synced: 2024-04-23T05:41:57.697Z (about 1 year ago)
- Language: TypeScript
- Size: 1.32 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS Secure Log Bucket
[](https://github.com/yicr/aws-secure-log-bucket/blob/main/LICENSE)
[](https://www.npmjs.com/package/@gammarers/aws-secure-log-bucket)
[](https://pypi.org/project/gammarers.aws-secure-log-bucket/)
[](https://www.nuget.org/packages/Gammarers.CDK.AWS.SecureLogBucket/)
[](https://github.com/yicr/aws-secure-log-bucket/actions/workflows/release.yml)
[](https://github.com/yicr/aws-secure-log-bucket/releases)[](https://constructs.dev/packages/@gammarers/aws-secure-log-bucket)
secure multiple transition phases in a single lifecycle policy bucket.
## Lifecycle rule
The storage class will be changed with the following lifecycle configuration.
| Storage Class | Defaul transition after days |
| ------------------- |------------------------------|
| INFREQUENT_ACCESS | 400 days |
| GLACIER | 720 days |
| DEEP_ARCHIVE | 980 days |## Install
### TypeScript
#### install by npm
```shell
npm install @gammarers/aws-secure-log-bucket
```
#### install by yarn```shell
yarn add @gammarers/aws-secure-log-bucket
```
#### install by pnpm```shell
pnpm add @gammarers/aws-secure-log-bucket
```
#### install by bun```shell
bun add @gammarers/aws-secure-log-bucket
```### Python
```shell
pip install gammarers.aws-secure-log-bucket
```### C# / .NET
```shell
dotnet add package Gammarers.CDK.AWS.SecureLogBucket
```## Example
### Normal log Bucket
```typescript
import { SecureLogBucket } from '@gammarers/aws-secure-log-bucket';new SecureLogBucket(stack, 'SecureLogBucket');
```### VPC Flow Log Bucket
```typescript
import { SecureLogBucket } from '@gammarers/aws-secure-log-bucket';new SecureLogBucket(stack, 'SecureFlowLogBucket', {
vpcFlowLog: {
enable: true,
bucketObjectKeyPrefix: [
'example-prefix-a',
'example-prefix-b',
],
},
});
```## License
This project is licensed under the Apache-2.0 License.