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

Unable to find aws_volume_attachment id #9910

Closed
tdeheurles opened this issue Nov 7, 2016 · 4 comments
Closed

Unable to find aws_volume_attachment id #9910

tdeheurles opened this issue Nov 7, 2016 · 4 comments

Comments

@tdeheurles
Copy link

Hi.

I'm trying to update a terraform state that a diverged from the reality.
I have updated my terraform code to match the new changes and have successfully imported most new resources. I then run terraform plan to diff reality/state/code.

But I'm failing on the aws_volume_attachment as I don't know how to find the id by using the aws cli or aws console.

My current feeling is this aws_volume_attachment.id is a terraform one but maybe I'm wrong.

@tdeheurles
Copy link
Author

I did a manual update of the aws_volume_attachment in the terraform state. After this one match the reality, the terraform plan was fine and didn't try to update the resource.

This seems to confirm that some ids are present at the terraform level and not cloud provider one.

@geoffreywiseman
Copy link
Contributor

Should this really be closed? This seems like a problem to me. I'm happy that @tdeheurles was able to solve the problem he/she was experiencing, but seems like it'll continue to be a problem for people adopting terraform when they already have EBS volumes attached to instances if there's no way to import this.

@geoffreywiseman
Copy link
Contributor

Ah, sounds like this is (mostly) resolved by #11060. Feels wrong to apply to create an attachment that already exists, but ... at least it doesn't fail, I guess.

@ghost
Copy link

ghost commented Apr 7, 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 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants