Skip to content

Commit

Permalink
feat: enable KMS key
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuller88 committed Feb 12, 2021
1 parent 8918043 commit 5942c6e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .projen/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@
"version": "1.88.0",
"type": "build"
},
{
"name": "@aws-cdk/aws-s3",
"version": "1.88.0",
"type": "build"
},
{
"name": "@aws-cdk/aws-s3",
"version": "1.88.0",
"type": "build"
},
{
"name": "@aws-cdk/core",
"version": "1.88.0",
Expand Down Expand Up @@ -178,6 +188,11 @@
"version": "1.88.0",
"type": "peer"
},
{
"name": "@aws-cdk/aws-s3",
"version": "1.88.0",
"type": "peer"
},
{
"name": "@aws-cdk/core",
"version": "1.88.0",
Expand Down
1 change: 1 addition & 0 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const cdkDeps = [
`@aws-cdk/core@${cdkVersion}`,
`@aws-cdk/aws-codepipeline@${cdkVersion}`,
`@aws-cdk/aws-iam@${cdkVersion}`,
`@aws-cdk/aws-s3@${cdkVersion}`,
`@aws-cdk/aws-codepipeline-actions@${cdkVersion}`,
`@aws-cdk/pipelines@${cdkVersion}`,
`@aws-cdk/assert@${cdkVersion}`,
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@aws-cdk/aws-codepipeline-actions": "1.88.0",
"@aws-cdk/aws-iam": "1.88.0",
"@aws-cdk/aws-lambda-nodejs": "1.88.0",
"@aws-cdk/aws-s3": "1.88.0",
"@aws-cdk/core": "1.88.0",
"@aws-cdk/pipelines": "1.88.0",
"@mobileposse/auto-delete-bucket": "^1.55.0",
Expand All @@ -55,6 +56,7 @@
"@aws-cdk/aws-codepipeline-actions": "1.88.0",
"@aws-cdk/aws-iam": "1.88.0",
"@aws-cdk/aws-lambda-nodejs": "1.88.0",
"@aws-cdk/aws-s3": "1.88.0",
"@aws-cdk/core": "1.88.0",
"@aws-cdk/pipelines": "1.88.0",
"@mobileposse/auto-delete-bucket": "^1.55.0",
Expand Down
2 changes: 2 additions & 0 deletions src/pipeline-stack.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Artifact, Pipeline } from '@aws-cdk/aws-codepipeline';
import { GitHubSourceAction } from '@aws-cdk/aws-codepipeline-actions';
import { PolicyStatement } from '@aws-cdk/aws-iam';
import * as s3 from '@aws-cdk/aws-s3';
import * as core from '@aws-cdk/core';
import {
CdkPipeline,
Expand Down Expand Up @@ -79,6 +80,7 @@ export class PipelineStack extends core.Stack {
const sourceBucket = new AutoDeleteBucket(this, 'PipeBucket', {
versioned: true,
bucketKeyEnabled: true,
encryption: s3.BucketEncryption.KMS,
});

const pipeline = new Pipeline(this, 'Pipeline', {
Expand Down

0 comments on commit 5942c6e

Please sign in to comment.