Skip to content

gammarers/aws-secure-log-bucket

Repository files navigation

AWS Secure Log Bucket

GitHub npm (scoped) PyPI Nuget GitHub Workflow Status (branch) GitHub release (latest SemVer)

View on Construct Hub

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 Default transition after days
INFREQUENT_ACCESS 400 days
GLACIER 720 days
DEEP_ARCHIVE 980 days

Additional Properties

Name Type Default Description
logBucketType SecureLogBucketType SecureLogBucketType.NORMAL The type of the bucket. Available types: NORMAL, VPC_FLOW_LOG
vpcFlowLog VPCFlowLog - ⚠️ Deprecated: This property is deprecated. Use the logBucketType property instead. Configuration for VPC Flow Log bucket settings.

Install

TypeScript

install by npm

npm install @gammarers/aws-secure-log-bucket

install by yarn

yarn add @gammarers/aws-secure-log-bucket

Python

pip install gammarers.aws-secure-log-bucket

C# / .NET

dotnet add package Gammarers.CDK.AWS.SecureLogBucket

Example

Normal log Bucket

import { SecureLogBucket } from '@gammarers/aws-secure-log-bucket';

new SecureLogBucket(stack, 'SecureLogBucket');

VPC Flow Log Bucket

import { SecureLogBucket } from '@gammarers/aws-secure-log-bucket';

new SecureLogBucket(stack, 'SecureFlowLogBucket', {
  logBucketType: SecureLogBucketType.VPC_FLOW_LOG,
  bucketObjectKeyPrefix: [
    'example-prefix-a',
    'example-prefix-b',
  ],
});

License

This project is licensed under the Apache-2.0 License.

About

secure multiple transition phases in a single lifecycle policy bucket.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •