Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminate ecs instances when renaming ecs cluster #8152

Closed
joonhwa opened this issue Apr 2, 2019 · 3 comments
Closed

Terminate ecs instances when renaming ecs cluster #8152

joonhwa opened this issue Apr 2, 2019 · 3 comments
Labels
question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. service/ecs Issues and PRs that pertain to the ecs service.

Comments

@joonhwa
Copy link

joonhwa commented Apr 2, 2019

When i rename an ECS cluster, terraform timeout while waiting for the cluster to be destroyed.

module.ecs.aws_ecs_cluster.main: Still destroying... (ID: arn:aws:ecs:ap-southeast-1:123456789:ecs-cluster, 10m47s elapsed)

The issue is because EC2 instances were never terminated. Once i manually terminate it, terraform is able to continue as usual. These instances were started by an Auto-scaling group.

I think there is no dependency from these EC2 instances to the terraform managed resource, so the instances are not being deleted.

What should i do to make terraform "see" these instances.

@joonhwa joonhwa added the question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. label Apr 2, 2019
@nywilken nywilken added the service/ecs Issues and PRs that pertain to the ecs service. label Apr 2, 2019
@nywilken
Copy link
Contributor

nywilken commented Apr 2, 2019

Related: #4852

@tracypholmes
Copy link
Contributor

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.

@joonhwa it looks like this is related to #4852, so please follow that issue for updates. You can also use https://discuss.hashicorp.com/c/terraform-providers for additional feedback, 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
Copy link

ghost commented Nov 2, 2019

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!

@ghost ghost locked and limited conversation to collaborators Nov 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. service/ecs Issues and PRs that pertain to the ecs service.
Projects
None yet
Development

No branches or pull requests

3 participants