Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

A stack deletion implementation #214

Merged
merged 3 commits into from
Jul 8, 2016

Commits on Jul 5, 2016

  1. Create dependency graph for stack deletion

    This implementation puts the dependencies in this order:
    
    <almost everything> ScalingGroup -> RDSInstance (this takes the longest)
    -> DB Sec Group -> VPC attachment -> InternetGateway -> VPC
    
    ```
    DELETE_COMPLETE       AWS::IAM::InstanceProfile                          InstanceProfile-DELETE_COMPLETE-2016-06-21T23:29:31.854Z
    DELETE_IN_PROGRESS    AWS::IAM::Role                                     BaseHostRole-DELETE_IN_PROGRESS-2016-06-21T23:29:34.051Z
    DELETE_COMPLETE       AWS::IAM::Role                                     BaseHostRole-DELETE_COMPLETE-2016-06-21T23:29:34.661Z
    DELETE_COMPLETE       AWS::EC2::SecurityGroup                            elb-DELETE_COMPLETE-2016-06-21T23:30:55.163Z
    DELETE_COMPLETE       AWS::RDS::DBInstance                               RDSInstance-DELETE_COMPLETE-2016-06-21T23:31:12.548Z
    DELETE_IN_PROGRESS    AWS::RDS::DBSubnetGroup                            RDSSubnetGroup-DELETE_IN_PROGRESS-2016-06-21T23:31:14.500Z
    DELETE_COMPLETE       AWS::RDS::DBSubnetGroup                            RDSSubnetGroup-DELETE_COMPLETE-2016-06-21T23:31:15.324Z
    DELETE_IN_PROGRESS    AWS::EC2::Subnet                                   SubnetC-DELETE_IN_PROGRESS-2016-06-21T23:31:17.022Z
    DELETE_IN_PROGRESS    AWS::EC2::Subnet                                   SubnetB-DELETE_IN_PROGRESS-2016-06-21T23:31:17.103Z
    DELETE_IN_PROGRESS    AWS::EC2::SecurityGroup                            DatabaseSG-DELETE_IN_PROGRESS-2016-06-21T23:31:17.224Z
    DELETE_COMPLETE       AWS::EC2::SecurityGroup                            DatabaseSG-DELETE_COMPLETE-2016-06-21T23:31:18.963Z
    DELETE_IN_PROGRESS    AWS::EC2::VPCGatewayAttachment                     AttachGateway-DELETE_IN_PROGRESS-2016-06-21T23:31:21.458Z
    DELETE_IN_PROGRESS    AWS::EC2::Subnet                                   SubnetA-DELETE_IN_PROGRESS-2016-06-21T23:31:27.522Z
    DELETE_COMPLETE       AWS::EC2::Subnet                                   SubnetC-DELETE_COMPLETE-2016-06-21T23:31:32.859Z
    DELETE_COMPLETE       AWS::EC2::Subnet                                   SubnetB-DELETE_COMPLETE-2016-06-21T23:31:33.030Z
    DELETE_COMPLETE       AWS::EC2::VPCGatewayAttachment                     AttachGateway-DELETE_COMPLETE-2016-06-21T23:31:37.421Z
    DELETE_IN_PROGRESS    AWS::EC2::InternetGateway                          InternetGateway-DELETE_IN_PROGRESS-2016-06-21T23:31:39.451Z
    DELETE_COMPLETE       AWS::EC2::Subnet                                   SubnetA-DELETE_COMPLETE-2016-06-21T23:31:43.439Z
    DELETE_COMPLETE       AWS::EC2::InternetGateway                          InternetGateway-DELETE_COMPLETE-2016-06-21T23:31:55.217Z
    DELETE_IN_PROGRESS    AWS::EC2::VPC                                      VPC-DELETE_IN_PROGRESS-2016-06-21T23:31:57.098Z
    Stack successfully deleted
    ```
    
    It also splits the test_rds test into two:
    * *test_rds* which tests RDS with a basic VPC (no vpc template resources)
    * *test_rds_with_vpc_dependencies* tests RDS with a VPC Gateway attachment
    filipposc5 committed Jul 5, 2016
    Configuration menu
    Copy the full SHA
    2ef028b View commit details
    Browse the repository at this point in the history
  2. Adds VPC Gateway Attachment dependency to ELB

    If the ELB is internet facing, it requires a VPCGatewayAttachment so
    that it can retrieve a public IP from the Internet Gateway. This change
    adds a DependsOn dependency for every ELB with scheme internet-facing
    so that when the stack gets deleted the ELB gets deleted before the
    VPCGatewayAttachment resources.
    filipposc5 committed Jul 5, 2016
    Configuration menu
    Copy the full SHA
    dfb3605 View commit details
    Browse the repository at this point in the history
  3. Update changelog

    filipposc5 committed Jul 5, 2016
    Configuration menu
    Copy the full SHA
    c529041 View commit details
    Browse the repository at this point in the history