Skip to content

Commit

Permalink
chore(cdk-ops): rename AccessLogsMasking
Browse files Browse the repository at this point in the history
- `AccessLogsMasking` → `AccessLogsETL`. Because the construct will not
  just mask access logs but do more transformation. So Extract,
  Transform, and Load (ETL) should be more suitable.

issue codemonger-io#30
  • Loading branch information
kikuomax committed Sep 24, 2022
1 parent 3af141e commit 3433cd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ export interface Props {
deploymentStage: DeploymentStage;
}

/** CDK construct that provisions resources to mask CloudFront access logs. */
export class AccessLogsMasking extends Construct {
/**
* CDK construct that provisions resources to process CloudFront access logs.
*
* @remarks
*
* Defines extract, transform, and load (ETL) operations.
*/
export class AccessLogsETL extends Construct {
/** S3 bucket for masked access logs. */
readonly maskedAccessLogsBucket: s3.IBucket;

Expand Down
6 changes: 3 additions & 3 deletions cdk-ops/lib/cdk-ops-stack.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';

import { AccessLogsMasking } from './access-logs-masking';
import { AccessLogsETL } from './access-logs-etl';
import {
CodemongerResources,
CodemongerResourceNames,
Expand All @@ -25,9 +25,9 @@ export class CdkOpsStack extends Stack {
const pipeline = new ContentsPipeline(this, 'ContentsPipeline', {
codemongerResources,
});
const developmentContentsAccessLogsMasking = new AccessLogsMasking(
const developmentContentsAccessLogsETL = new AccessLogsETL(
this,
'DevelopmentContentsAccessLogsMasking',
'DevelopmentContentsAccessLogsETL',
{
accessLogsBucket:
codemongerResources.developmentContentsAccessLogsBucket,
Expand Down

0 comments on commit 3433cd6

Please sign in to comment.