-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
#713 Support autoscaling on EMR #2877
Conversation
This links to #713 |
I have added the docs now so it should be good to merge in |
@jen20 any idea when this might get reviewed? |
Hi @darrenhaken, thanks for your work here. Due to the fast moving nature of the AWS SDK versions, we tend to prefer vendor/dependency changes in a separate PR to prevent rebase issues like the conflicts now in this PR. Can you please rebase so it doesn't include any |
@bflad should be fixed now, can you review the PR? |
@bflad has this been reviewed yet? I'd like to get cracking on another PR. |
@bflad any update on this? It's been around a month now and we'd really like this feature. |
Does anyone have an update on this? To go a month without any feedback doesn't fill me with motivation to keep contributing to TF 👎 |
Hi @darrenhaken, this is my fault for dropping the ball here as you've been explicitly asking me for an update (rightfully since I asked you to change something). I'm really sorry about that. 😢 We have a lot going on in this repository and this got shuffled in with the various other issue/PR notifications. I will give an actual review of this later today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor change and rebase with the latest documentation, then LGTM. Thanks for the contribution and sorry for the delayed review.
=== RUN TestAccAWSEMRCluster_terminationProtected
--- PASS: TestAccAWSEMRCluster_terminationProtected (387.41s)
=== RUN TestAccAWSEMRCluster_bootstrap_ordering
--- PASS: TestAccAWSEMRCluster_bootstrap_ordering (432.28s)
=== RUN TestAccAWSEMRCluster_security_config
--- PASS: TestAccAWSEMRCluster_security_config (442.92s)
=== RUN TestAccAWSEMRCluster_basic
--- PASS: TestAccAWSEMRCluster_basic (525.40s)
=== RUN TestAccAWSEMRCluster_instance_group
--- PASS: TestAccAWSEMRCluster_instance_group (532.58s)
=== RUN TestAccAWSEMRCluster_custom_ami_id
--- PASS: TestAccAWSEMRCluster_custom_ami_id (623.71s)
=== RUN TestAccAWSEMRCluster_s3Logging
--- PASS: TestAccAWSEMRCluster_s3Logging (634.92s)
=== RUN TestAccAWSEMRCluster_visibleToAllUsers
--- PASS: TestAccAWSEMRCluster_visibleToAllUsers (773.45s)
=== RUN TestAccAWSEMRCluster_root_volume_size
--- PASS: TestAccAWSEMRCluster_root_volume_size (969.56s)
=== RUN TestAccAWSEMRCluster_tags
--- PASS: TestAccAWSEMRCluster_tags (1011.22s)
aws/resource_aws_emr_cluster.go
Outdated
"autoscaling_policy": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Despite the naming, suppressEquivalentAwsPolicyDiffs
is currently only for IAM-type policy documents. In this case we'll likely be looking for this combination of attribute handlers:
DiffSuppressFunc: suppressEquivalentJsonDiffs,
ValidateFunc: validateJsonString,
StateFunc: func(v interface{}) string {
json, _ := structure.NormalizeJsonString(v)
return json
},
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make the change now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be resolved now, can you review it for me? I'll work on my next PR once we have this one through 👍
aws/resource_aws_emr_cluster.go
Outdated
"autoscaling_policy": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make the change now
Almost!
Some of the active contributors/maintainers here like using |
@bflad oops! Thanks for the tip on It all looks to be passing now, can you review? |
LGTM 🚀
|
This has been released in version 1.10.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! |
Can someone review this?