-
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
resource/aws_emr_cluster: Add master_instance_group and core_instance_group configuration blocks, deprecate other instance group configuration methods #8459
Conversation
…_group configuration blocks, deprecate other instance group configuration methods Reference: #8245 Output from acceptance testing: ``` --- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_AutoscalingPolicy (487.78s) --- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_BidPrice (1006.42s) --- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_InstanceCount (1004.90s) --- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_InstanceType (869.47s) --- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_Migration_CoreInstanceType (415.45s) --- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_Migration_InstanceGroup (485.50s) --- PASS: TestAccAWSEMRCluster_CoreInstanceGroup_Name (769.30s) --- PASS: TestAccAWSEMRCluster_MasterInstanceGroup_BidPrice (849.98s) --- PASS: TestAccAWSEMRCluster_MasterInstanceGroup_InstanceType (756.42s) --- PASS: TestAccAWSEMRCluster_MasterInstanceGroup_Migration_InstanceGroup (414.36s) --- PASS: TestAccAWSEMRCluster_MasterInstanceGroup_Migration_MasterInstanceType (423.02s) --- PASS: TestAccAWSEMRCluster_MasterInstanceGroup_Name (735.58s) ```
6cd6a5f
to
c2ce886
Compare
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 is looking pretty solid, and the upgrade guide is nicely written 👍🏼
I’m still working through the resource changes but there are a few minor things worth calling out.
aws/resource_aws_emr_cluster_test.go
Outdated
@@ -2523,161 +3169,478 @@ resource "aws_kms_key" "foo" { | |||
} | |||
POLICY | |||
} | |||
`, r, r, r, r, r, r, r, r, r) | |||
`, r, r, r, r, r, r, r, r, r) |
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.
Let’s switch to index notation for the verbs as opposed to positional.
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 updated this unrelated test to index notation, but I'd really prefer to treat testing cleanup separate from code changes for this resource so we can simplify/fix all the test configurations together (e.g. use testAccAWSEmrClusterConfigBaseVpc
) and keep the review here concise.
--- PASS: TestAccAWSEMRCluster_security_config (404.88s)
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.
💯
Co-Authored-By: Wilken Rivera <[email protected]>
…urityConfiguration to index notation Reference: https://github.com/terraform-providers/terraform-provider-aws/pull/8459/files#r282175062 Output from acceptance testing: ``` --- PASS: TestAccAWSEMRCluster_security_config (404.88s) ```
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.
LGTM 👍 👍
This has been released in version 2.11.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
Hello @bflad why remove the capabilities of launching an instance_group Core and TASK in a single
thank you |
Hi, I think this behaviour could be the same as security group inline rule vs security group rule as resources. @bflad Any opinion / suggestion? |
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! |
Community Note
Closes #8245
Output from acceptance testing (will kick off full resource testing shortly):