Cleanup

In order for the Stack to be successfully deleted, ECR registry should be empty. Please delete image from ECR registry manually first by going to AWS Console -> ECR.

Delete ECR

Once you are done, you can cleanup all created resources by running:

cdk destroy

The output should look like the following:

Are you sure you want to delete: NorthwindCdkStack (y/n)? y
NorthwindCdkStack: destroying...
  0 | 11:35:50 PM | DELETE_IN_PROGRESS   | AWS::CloudFormation::Stack                  | NorthwindCdkStack User Initiated
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::EC2::SubnetRouteTableAssociation       | LabVpc/PublicSubnet2/RouteTableAssociation (LabVpcPublicSubnet2RouteTableAssociationD6683741)
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::EC2::Route                             | LabVpc/PrivateSubnet2/DefaultRoute (LabVpcPrivateSubnet2DefaultRouteE9E90533)
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::EC2::SubnetRouteTableAssociation       | LabVpc/PrivateSubnet1/RouteTableAssociation (LabVpcPrivateSubnet1RouteTableAssociationA08CAA0A)
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::EC2::SubnetRouteTableAssociation       | LabVpc/PrivateSubnet2/RouteTableAssociation (LabVpcPrivateSubnet2RouteTableAssociationAF61693D)
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::IAM::Policy                            | Pipeline/EventsRole/DefaultPolicy (PipelineEventsRoleDefaultPolicyFF4FCCE0)
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::IAM::Policy                            | Pipeline/Source/Source/CodePipelineActionRole/DefaultPolicy (PipelineSourceCodePipelineActionRoleDefaultPolicy2D565925)
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::Events::Rule                           | NorthwindCodeRepository/NorthwindCdkStackPipeline9B6AE2E1EventRule (NorthwindCodeRepositoryNorthwindCdkStackPipeline9B6AE2E1EventRule1713EBCE)
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::RDS::DBInstance                        | NorthwindPostgreSQL/Instance1 (NorthwindPostgreSQLInstance15E57D78E)
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::EC2::SubnetRouteTableAssociation       | LabVpc/PublicSubnet1/RouteTableAssociation (LabVpcPublicSubnet1RouteTableAssociationFE601F86)
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::IAM::Policy                            | NorthwindService/TaskDef/ExecutionRole/DefaultPolicy (NorthwindServiceTaskDefExecutionRoleDefaultPolicyC3AA9D52)
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::SSM::Parameter                         | NorthwindPostgreSQLDatabaseConnectionString (NorthwindPostgreSQLDatabaseConnectionString2F8E55B7)
  0 | 11:35:52 PM | DELETE_IN_PROGRESS   | AWS::IAM::Policy                            | BuildProject/Role/DefaultPolicy (BuildProjectRoleDefaultPolicy3E9F248C)

 ..........

 57 | 11:42:50 PM | DELETE_COMPLETE      | AWS::EC2::RouteTable                        | LabVpc/PublicSubnet1/RouteTable (LabVpcPublicSubnet1RouteTable5D022469)
 58 | 11:42:50 PM | DELETE_COMPLETE      | AWS::EC2::RouteTable                        | LabVpc/PublicSubnet2/RouteTable (LabVpcPublicSubnet2RouteTableA796C712)
 59 | 11:43:06 PM | DELETE_COMPLETE      | AWS::EC2::SecurityGroup                     | NorthwindService/LB/SecurityGroup (NorthwindServiceLBSecurityGroup581D7D3B)
 60 | 11:43:15 PM | DELETE_COMPLETE      | AWS::EC2::Subnet                            | LabVpc/PublicSubnet1/Subnet (LabVpcPublicSubnet1SubnetBE5AC483)
 61 | 11:43:19 PM | DELETE_COMPLETE      | AWS::EC2::VPCGatewayAttachment              | LabVpc/VPCGW (LabVpcVPCGW932EA6D0)
 62 | 11:43:19 PM | DELETE_COMPLETE      | AWS::EC2::Subnet                            | LabVpc/PublicSubnet2/Subnet (LabVpcPublicSubnet2Subnet17E729C0)
 62 | 11:43:19 PM | DELETE_IN_PROGRESS   | AWS::EC2::InternetGateway                   | LabVpc/IGW (LabVpcIGW82336A21)
 62 | 11:43:20 PM | DELETE_IN_PROGRESS   | AWS::EC2::VPC                               | LabVpc (LabVpc17F821B7)

 ✅  NorthwindCdkStack: destroyed