Skip to content

Commit

Permalink
efs removal and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
troydieter committed May 13, 2022
1 parent dca7779 commit 914b821
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ Deployment of Lighthouse CI through AWS-CDK onto AWS Fargate.

## Noted cleanup

1. You may need to clean up `EFS` filesystems when creating and destroying this CDK app (they may persist)
1. ~~You may need to clean up `EFS` filesystems when creating and destroying this CDK app (they may persist)~~
> Per v1.2 - I've added the proper RemovalPolicy for the EFS FileSystem to Destroy after removal
2. Check for any lingering `EIP`'s that may resided

## Useful commands
Expand Down
4 changes: 3 additions & 1 deletion lib/lhci-stack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as cdk from 'aws-cdk-lib';
import { RemovalPolicy } from 'aws-cdk-lib';
import { Certificate, CertificateValidation, isDnsValidatedCertificate } from 'aws-cdk-lib/aws-certificatemanager';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import { Protocol } from 'aws-cdk-lib/aws-ec2';
Expand All @@ -24,7 +25,8 @@ export class LHCIStack extends cdk.Stack {
encrypted: true,
lifecyclePolicy: efs.LifecyclePolicy.AFTER_14_DAYS,
performanceMode: efs.PerformanceMode.GENERAL_PURPOSE,
throughputMode: efs.ThroughputMode.BURSTING
throughputMode: efs.ThroughputMode.BURSTING,
removalPolicy: RemovalPolicy.DESTROY
});


Expand Down

0 comments on commit 914b821

Please sign in to comment.