Terraform: aws_alb_target_group can`t recreate with attached listeners

Created on 26 Mar 2017  路  7Comments  路  Source: hashicorp/terraform

Hi there,

I have change the port for aws_alb_target_group, that forces new resource.
Than while trying to delete the target group. I get following error:

Error deleting Target Group: ResourceInUse: Target group 'xxxx' is currently in use by a listener or a rule status code: 400, request id: 747913f1-1213-11e7-916c-3f605d5e091b

So, I assume that it should delete the listener first. That's what I've done manually to resolve the problem.

Terraform Version

Terraform v0.9.1

Affected Resource(s)

  • aws_alb_target_group
  • aws_alb_listener_rule
bug provideaws

Most helpful comment

Running into this with v0.11.4.

Manually deleting the listener can not be the solution.

All 7 comments

I ran into this problem as well, what should be happening is on destroy, the listener needs to be destroyed before the target group,Alex is correct

Running into this with v0.9.4 as well.

Running into this with v0.9.5

Running into this with v0.9.6

Running into this with v0.11.4.

Manually deleting the listener can not be the solution.

I solved this by renaming my listener resources. (Also not an ideal solution)

Hi all,

This issue has been moved to the aws provider repository, and any conversation should continue in the new issue.

Since comments (and reactions) on this issue are generating notifications to subscribers, I am going to lock it and encourage you to view the moved issue.

Please continue to open new issues here for any other Terraform Core problems that you come across, and thanks!

Was this page helpful?
0 / 5 - 0 ratings