-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
aws_emr_cluster importer #4488
aws_emr_cluster importer #4488
Conversation
This isn't as straightforward as it seems -- this resource is pretty old and does not properly set attributes in the Terraform state during the read function, which is now detected by the import test:
In some of these cases, the fix is as simple as adding In the For now you can add this to the new import ImportStateVerifyIgnore: []string{"configurations"}, Sorry you found a can of worms! Are you able to see about fixing some of these easier ones (not |
I'll give the easy ones a shot. Thanks for the write up. |
Hey @stefansundin! 👋 Any luck so far? No worries if not, we're just trying to reduce the number of lingering pull requests and can make this work as-is. I didn't want to start doing anything here if you indeed had anything else to add to it. Thanks so much! |
Hey @bflad. I gave it a try but I had some issues.
Anyway, the mixing of the legacy "job flow" API and the new cluster API made it a bit confusing to me. And I'm not an EMR expert by any means. I have managed to run the tests now, but I haven't run it yet with the proposed changes above. |
Hi @bflad. I rebased on master and made |
@bflad I rebased again just to get Travis to rebuild and it passed now. I think it just encountered a random network error earlier, but I couldn't find a way to manually rebuild it. |
Can you double check the other acceptance tests by adding the import I think last time I ran the other acceptance tests with the additional |
Thanks. I don't think I have enough area-expertise to solve this. If someone else wants to finish this, please feel free! |
This has been released in version 1.56.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
This is my first attempt at making an importer, but I tried this and it seems to work fine.
Not sure if
aws_emr_instance_group
would benefit from an importer as well? We don't use that resource so I don't have the ability to immediately test it.Also fixed some typos in the docs for
aws_emr_security_configuration
.Thanks!