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

MountTargetNotFound when trying to destroy EFS #8523

Closed
HenryTheHamster opened this issue Aug 29, 2016 · 2 comments
Closed

MountTargetNotFound when trying to destroy EFS #8523

HenryTheHamster opened this issue Aug 29, 2016 · 2 comments

Comments

@HenryTheHamster
Copy link

HenryTheHamster commented Aug 29, 2016

Terraform Version

0.7.2

Affected Resource(s)

  • aws_efs_mount_target

Terraform Configuration Files

resource "aws_efs_file_system" "efs" {
  creation_token = "${var.stack_name}"
  tags {
    Name = "${var.stack_name}"
  }
}

resource "aws_efs_mount_target" "efs" {
  count           = "${length(compact(split(",", var.public_subnets)))}"
  file_system_id  = "${aws_efs_file_system.efs.id}"
  subnet_id       = "${element(aws_subnet.public.*.id, count.index)}"
  security_groups = ["${aws_security_group.efs.id}"]
}

Debug Output

https://gist.github.com/HenryTheHamster/714cd29b9b9325801508d6bfbd80c07e

Expected Behavior

Mount targets that are not found are considered already deleted, and destroy finishes as normal.

Actual Behavior

* aws_efs_mount_target.efs.0: MountTargetNotFound: Mount target does not exist.
        status code: 404, request id: 91b18f21-6d9b-11e6-b50e-5d876ebd0646
* aws_efs_mount_target.efs.1: MountTargetNotFound: Mount target does not exist.
        status code: 404, request id: 91b27923-6d9b-11e6-b3a9-bbb5cfda0da7

Checking in AWS shows that these mount targets no longer exist, and I would expect Terraform to handle this, rather than throwing the above error. We get the same error trying to apply from this state.

Steps to Reproduce

  1. terraform destroy
@stack72
Copy link
Contributor

stack72 commented Aug 30, 2016

Closed via #8529

@stack72 stack72 closed this as completed Aug 30, 2016
@ghost
Copy link

ghost commented Apr 22, 2020

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants