Skip to content

Commit

Permalink
feat(cdk): replace DeploymentStage
Browse files Browse the repository at this point in the history
- `DeploymentStage` and related functions are replaced with the ones
  defined in `cdk-common`.

issue codemonger-io#4
  • Loading branch information
kikuomax committed Jun 17, 2022
1 parent 852d21b commit 3ee5e5a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 56 deletions.
2 changes: 1 addition & 1 deletion cdk/bin/cdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import 'source-map-support/register';
import * as cdk from 'aws-cdk-lib';
import { CdkStack } from '../lib/cdk-stack';
import { getDeploymentStage } from '../lib/deployment-stage';
import { getDeploymentStage } from 'cdk-common';

const app = new cdk.App();
const deploymentStage = getDeploymentStage(app.node);
Expand Down
2 changes: 1 addition & 1 deletion cdk/lib/cdk-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Construct } from 'constructs';

import { ContentsBucket } from './contents-bucket';
import { ContentsDistribution } from './contents-distribution';
import { DeploymentStage } from './deployment-stage';
import { DeploymentStage } from 'cdk-common';

type Props = StackProps & Readonly<{
// Deployment stage.
Expand Down
2 changes: 1 addition & 1 deletion cdk/lib/contents-bucket.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RemovalPolicy, aws_s3 as s3 } from 'aws-cdk-lib';
import { Construct } from 'constructs';

import { DeploymentStage } from './deployment-stage';
import { DeploymentStage } from 'cdk-common';

type Props = Readonly<{
// Deployment stage.
Expand Down
2 changes: 1 addition & 1 deletion cdk/lib/contents-distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
CODEMONGER_CERTIFICATE_ARN,
} from './certificate-config';
import { ContentsBucket } from './contents-bucket';
import { DeploymentStage } from './deployment-stage';
import { DeploymentStage } from 'cdk-common';

type Props = Readonly<{
// S3 bucket for contents of the codemonger website.
Expand Down
52 changes: 0 additions & 52 deletions cdk/lib/deployment-stage.ts

This file was deleted.

0 comments on commit 3ee5e5a

Please sign in to comment.