Skip to content

Commit

Permalink
Remove resolved TODOs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nateglims committed Nov 20, 2023
1 parent 11e4467 commit 2749733
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/build-image-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class BuildImagePipelineStack extends cdk.Stack {
const sourceAction = new codepipeline_actions.S3SourceAction({
actionName: 'Build-Image-Source',
bucket: props.dataBucket,
bucketKey: 'data.zip', // TODO(glimsdal): Parameterize.
bucketKey: 'data.zip',
output: sourceOutput,
});

Expand Down
1 change: 0 additions & 1 deletion lib/demo-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ def handler(event, context):
): string {
const fs = new efs.FileSystem(this, `DemoPipeline${name}Filesystem`, {
vpc,
// TODO(nateglims): Reconsider this when development is slowing down.
removalPolicy: cdk.RemovalPolicy.DESTROY,
});
fs.connections.allowFrom(securityGroup, Port.tcp(2049));
Expand Down
11 changes: 0 additions & 11 deletions test/build-image-repo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@ describe('Build Image Repository', () => {
env: { account: '111111111111', region: 'eu-central-1' },
};

test('ECR Repo has EmptyOnDelete', () => {
const app = new cdk.App();
const stack = new BuildImageRepoStack(app, 'MyTestStack', props);
const template = Template.fromStack(stack);
template.resourceCountIs('AWS::ECR::Repository', 1);
// TODO: Investigate why we cannot set EmptyOnDelete in CDK.
// template.hasResourceProperties("AWS::ECR::Repository", {
// EmptyOnDelete: true,
// });
});

test('Snapshot', () => {
const app = new cdk.App();
const stack = new BuildImageRepoStack(app, 'MyTestStack', props);
Expand Down
2 changes: 1 addition & 1 deletion test/demo-pipeline-nag.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('Demo pipeline cdk-nag AwsSolutions Pack', () => {
},
{
id: 'AwsSolutions-CB3',
reason: 'TODO: Verify CodeBuild Privilege mode is required here.',
reason: 'CodeBuild Privilege mode is required for this pipeline.',
},

{
Expand Down

0 comments on commit 2749733

Please sign in to comment.