-
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
[Bug]: aws_emr_instance_group configured with instance_count = 0 spins up instance at apply then destroys #38837
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Have subsequently tested supplying NULL to the instance group config for instance count and had the same result |
Believe that it may be related to the code here:
but my go coding is not great |
This is a major issue for us as it doubles the emr cluster build time since we have to wait for a task node to build. We do this very often with a high quantity of clusters and it is very painful during maintenance windows. Please escalate this. We can't move past this provider version until this is fixed. Thanks |
Relates #26154. |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.65.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Terraform Core Version
1.5.4
AWS Provider Version
4.67.0
Affected Resource(s)
aws_emr_instance_group
Expected Behavior
aws_emr_instance_group configured with instance_count = 0 should create the instance group with no instances actually being created
Actual Behavior
aws_emr_instance_group creates an instance group, but spins up an instance. As soon as the instance finishes creation an autoscaling event destroys it to obey the instance_count=0 configuration. This also causes apply stage to run for much longer than required as it waits for the instance creation and subsequent destroy before achieving its desired state and completing the apply operation.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
configure emr cluster with a number of aws_emr_instance_group resources with various instance types and instance_count=0
terraform init
terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
We run emr for structured streaming and clusters are long running. For a number of reasons in this situation we cannot run instance_fleets, and instead run with multiple instance groups of different instance types using spot instances. For nonprod environments we deploy the clusters with just master and core nodes and configure these task instance groups to able to scale on deployment of jobs. This works fine in most instances, but we do see these task groups spinning up task instances at apply (and we pay have to pay for those, minimally admittedly) and occasionally the resize operation takes so long our deployment pipelines timeout.
I have raised this with AWS support and the can see that API calls are being executed as requested
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: