-
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 "New resource required" while updating instance_count inside instance_groups #5111
Comments
Tested with 1.22 it's the same. |
I have same issue here. When you want add or remove instance terraform just decides to kill entire cluster. Another weird issue is if I add instance manually in AWS Console terraform doens't recognise that change.
What you will see is that plan will try to remove entire cluster even tho your remote state should have 2 instances in Core instance Group and your code have exact same value. Is this something we can change? I see that GO API have call for changing instance groups but I'm not sure why this require to kill entire cluster. |
I've also stumbled across this. Looking at the cloudformation documentation, it looks like it requires a recreate for this resource type: |
I'm not sure either how they got it working but I think we could just recreate instance_group rather than entire cluster which basically require destroying all your work and start again.... |
I just run a quick test with Cloudformation. I was able to change the count of instances without destroying the cluster. However, changing the instance type requires a replacement. I created a stack with https://github.com/awslabs/aws-cloudformation-templates/blob/master/aws/services/EMR/EMRCLusterGangliaWithSparkOrS3backedHbase.json |
Hi folks 👋 Version 3.0.0 of the Terraform AWS Provider removed the problematic |
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 issue was originally opened by @aashisn as hashicorp/terraform#18405. It was migrated here as a result of the provider split. The original body of the issue is below.
I did quick search over existing issues and didnt see anything relevent; if its duplicate feel free to link existing ticket and close.
It seems terraform destroys all cluster or (creates from sctrach) even when changing number of node within
instance_groups
.Either we should be able to update those count without destroying existing cluster as aws cli allows to do.
Or,
aws_emr_instance_group
, should accept bid_price.This is problem; when you want to have Master/Core in ondemand and have all task instances in spot.
Terraform Version
Terraform Configuration Files
Expected Behavior
Should be able to update count without re-creating or destroying cluster;
like:
aws emr add-instance-groups --cluster-id j-XXXXXXXXXX --instance-groups file://add-task.json --region eu-west-1
aws emr modify-instance-groups --cluster-id j-XXXXXXXXXX --instance-groups file://update.json --region eu-west-1
Actual Behavior
The text was updated successfully, but these errors were encountered: