hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.81k stars 9.15k forks source link

Cannot Roll over to new ASG #1100

Closed scefali closed 5 years ago

scefali commented 7 years ago

Hello,

I have encountered a bug with provisioning a new ASG from a ECS cluster still running using version 0.9.9. When I make some changes to the ASG that cause the old one to to be deposed as seen in the log file attached (asgbug.txt), the new one cannot come up. It is saying that one of the instances are healthy but the AWS console is telling me they are just fine! All the health checks pass in the target group. From what I can tell, the problem is that the ECS agent is not assigning new tasks to instances in the new autoscaling because the tasks in the old autoscaling group are there. In a later build I was able to get the ASG to pass the tests by manually removing tasks and instances from the cluster from the old ASG so the ECS agent would give tasks to instances on the new ASG. Such manual interventions should not be necessary. I've been able to reproduce this bug on a number of occasions. I can provide more info if needed.

tracypholmes commented 5 years ago

Thank you for using Terraform and for opening up this question. Issues on GitHub are intended to be related to bugs or feature requests with the provider codebase. Please use https://discuss.hashicorp.com/c/terraform-providers for community discussions, and questions around Terraform.

If you believe that your issue was miscategorized as a question or closed in error, please create a new issue using one of the following provided templates: bug report or feature request. Please make sure to provide us with the appropriate information so we can best determine how to assist with the given issue.

ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!