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

1st destroy operation with a Lambda and ALB fails #1310

Closed
jbayer opened this issue Apr 9, 2021 · 2 comments
Closed

1st destroy operation with a Lambda and ALB fails #1310

jbayer opened this issue Apr 9, 2021 · 2 comments
Labels
bug Something isn't working plugin/aws
Milestone

Comments

@jbayer
Copy link
Contributor

jbayer commented Apr 9, 2021

Describe the bug
I needed to run the waypoint destroy operation twice with the example Lambda project as the 1st time results in an error.

Steps to Reproduce
Run the Lambda example and then attempt to destroy it at the end. I encountered an error the first time. Running it again a few moments later resolves the issue.

$ waypoint destroy -auto-approve

» Destroying releases for application 'learn-waypoint-lambda'...

» Destroying deployments for application 'learn-waypoint-lambda'...
! Error destroying: rpc error: code = Unknown desc = ResourceInUse: Target group 'arn:aws:elasticloadbalancing:us-west-2:770746137682:targetgroup/learn-waypoint-lambda-01F2VJ9T48/c8fbab83b6ae4ee4' is currently in use by a listener or a rule
  	status code: 400, request id: 7f977192-8349-43bb-98d0-37e3fc057e9c
$ waypoint destroy -auto-approve

» Destroying shared deploy resources for application 'learn-waypoint-lambda'...
✓ Connecting to AWS
✓ Deleting Lambda function
⠼ IAM role deleted
Destroy successful!

Expected behavior
The destroy operation works the 1st time.

Waypoint Platform Versions

  • Waypoint CLI Version: 0.3.0
  • Waypoint Server Platform and Version: 0.3.0 on k8s
  • Waypoint Plugin: aws-lambda
@jbayer
Copy link
Contributor Author

jbayer commented Apr 9, 2021

It also appears that the ALB and associated Security Group did not get cleaned up.

Screen Shot 2021-04-09 at 8 49 53 AM

@evanphx
Copy link
Contributor

evanphx commented May 12, 2021

This is the same as #1081 so I'm going to close it in favor of that one.

@evanphx evanphx closed this as completed May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working plugin/aws
Projects
None yet
Development

No branches or pull requests

3 participants