Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

fix: Don't delete ALB if another instance is starting #797

Conversation

nguyen102
Copy link
Contributor

@nguyen102 nguyen102 commented Nov 11, 2021

Issue #, if available:

Description of changes:
Setup:
There is one instance. Launch a new instance. After check-launch-dependency passes for that instance, terminate the original instance.

This PR prevents SWB from terminating the ALB, because it thinks that there are no more instance relying on the ALB left.

We fix this in terminate-launch-depency. Before terminating the ALB we check if there any PENDING instances that is associated with a ProjectType that has the input parameter ACMSSLCertARN.

Checklist:

  • Have you successfully deployed to an AWS account with your changes?
  • Have you written new tests for your core changes, as applicable?

AS review ticket id:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@nguyen102 nguyen102 changed the title Alb termination check pending fix: Don't delete ALB if another instance is starting Nov 11, 2021
@nguyen102 nguyen102 changed the base branch from fix-rstudio-alb-pentest to develop November 11, 2021 21:00
@nguyen102 nguyen102 changed the base branch from develop to fix-rstudio-alb-pentest November 11, 2021 21:04
@nguyen102 nguyen102 marked this pull request as ready for review November 11, 2021 21:05
Copy link
Contributor

@SanketD92 SanketD92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nguyen102 nguyen102 merged commit 079e11c into awslabs:fix-rstudio-alb-pentest Nov 12, 2021
@nguyen102 nguyen102 deleted the alb-termination-check-pending branch January 4, 2022 02:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants