The EMR cluster and thus it's associated scaling policy had been manually deleted months ago, so we expected it to be created with the new cluster.
Actual Behavior
There was an error on the scaling policy during the plan, complaining that the associated EMR cluster could not be found. Seems to be similar to this resolved issue on the cluster resource.
We were able to work around this by removing the resource from the statefile. On the next apply the EMR cluster and this resource were created successfully.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
0.12.31
AWS Provider Version
3.76.1
Affected Resource(s)
aws_emr_managed_scaling_policy
Expected Behavior
The EMR cluster and thus it's associated scaling policy had been manually deleted months ago, so we expected it to be created with the new cluster.
Actual Behavior
There was an error on the scaling policy during the plan, complaining that the associated EMR cluster could not be found. Seems to be similar to this resolved issue on the cluster resource.
We were able to work around this by removing the resource from the statefile. On the next apply the EMR cluster and this resource were created successfully.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
Seems to be similar to this resolved issue on the cluster resource.
Also saw this issue with EMR instance groups, but I see that was fixed in TF provider 4.26.
Would you like to implement a fix?
No