Skip to content
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

r/emr_cluster: enable configuration of ebs root volume size #1375

Merged
merged 5 commits into from
Oct 10, 2017

Conversation

rolandjohann
Copy link
Contributor

EBS root volume size configuration implementation

@rolandjohann rolandjohann changed the title enable configuration of ebs root volume size r/emr_cluster: enable configuration of ebs root volume size Aug 9, 2017
@radeksimko radeksimko added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 11, 2017
@Ninir
Copy link
Contributor

Ninir commented Aug 14, 2017

Hey @rmmjohann

This seems very good for a 1st-time contribution! 👍

Could you also check the attribute existence in the acceptance test?
It would be awesome to add another step in the test that updates the attribute, so that we know everything is ok.

If you need any help on that, feel free to ask!

@Ninir Ninir added the waiting-response Maintainers are waiting on response from community or contributor. label Aug 14, 2017
@rolandjohann
Copy link
Contributor Author

I'll do this within the next days

@rolandjohann
Copy link
Contributor Author

@Ninir done

@Ninir Ninir removed the waiting-response Maintainers are waiting on response from community or contributor. label Sep 18, 2017
Copy link
Contributor

@Ninir Ninir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @rolandjohann

This looks good to me :)

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSEMRCluster_'     
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSEMRCluster_ -timeout 120m
=== RUN   TestAccAWSEMRCluster_basic
--- PASS: TestAccAWSEMRCluster_basic (622.78s)
=== RUN   TestAccAWSEMRCluster_instance_group
--- PASS: TestAccAWSEMRCluster_instance_group (722.08s)
=== RUN   TestAccAWSEMRCluster_security_config
--- PASS: TestAccAWSEMRCluster_security_config (648.09s)
=== RUN   TestAccAWSEMRCluster_bootstrap_ordering
--- PASS: TestAccAWSEMRCluster_bootstrap_ordering (672.08s)
=== RUN   TestAccAWSEMRCluster_visibleToAllUsers
--- PASS: TestAccAWSEMRCluster_visibleToAllUsers (1497.36s)
=== RUN   TestAccAWSEMRCluster_tags
--- PASS: TestAccAWSEMRCluster_tags (1146.55s)
=== RUN   TestAccAWSEMRCluster_basic
--- PASS: TestAccAWSEMRCluster_basic (689.31s)

This is just missing the documentation update, so that users know of this feature. Can you add it please?

Also and just for the information: do you have an official documentation link where I could see this attribute in action? can't find one in the EMR cluster API nor in the CloudFormation one, only in the CLI one.
Would like to see validation and so on.

Thanks!

@rolandjohann
Copy link
Contributor Author

Sure, here are the docs: https://docs.aws.amazon.com/sdk-for-go/api/service/emr/#RunJobFlowInput.
Just saw that root volume size is supported by EMR 4.x upwards only. Will check that tomorrow.

Your test output doesn't contain the test for the root volume size. Is this the full output?

Yes, docs are crutial - didn't had them in mind. I'll fix them tomorrow as well.

@Ninir
Copy link
Contributor

Ninir commented Sep 20, 2017

Your test output doesn't contain the test for the root volume size. Is this the full output?

It seems the output has been cut, but the test do passed :)

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSEMRCluster_root_volume_size'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSEMRCluster_root_volume_size -timeout 120m
=== RUN   TestAccAWSEMRCluster_root_volume_size
--- PASS: TestAccAWSEMRCluster_root_volume_size (1530.05s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	1530.085s

Sure, here are the docs: https://docs.aws.amazon.com/sdk-for-go/api/service/emr/#RunJobFlowInput.
Just saw that root volume size is supported by EMR 4.x upwards only. Will check that tomorrow.

Yes, this was my concern when checking the docs: can't find anything about this particular attribute in the API / CF but in the CLI & SDK.

Yes, docs are crutial - didn't had them in mind. I'll fix them tomorrow as well.

Thank your for that! :)

@rolandjohann
Copy link
Contributor Author

Strange, that there is no reference at the API and CloudFormation docs.

The terraform docs are now updated.

Setting ebs_root_volume_size when using EMR version below 4.x is a misconfiguration, and shouldn't be handled by terraform, IMO. Are there any conventions at terraform how to handle those errors?

@rolandjohann
Copy link
Contributor Author

rolandjohann commented Oct 1, 2017

@Ninir is there somehting left to do?

Copy link
Contributor

@Ninir Ninir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @rolandjohann

Seems good to me :)

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSEMRCluster_root_volume_size' 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSEMRCluster_root_volume_size -timeout 120m
=== RUN   TestAccAWSEMRCluster_root_volume_size
--- PASS: TestAccAWSEMRCluster_root_volume_size (1204.53s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	1204.569s

Thanks for the work! 👍

@Ninir Ninir merged commit aaf003a into hashicorp:master Oct 10, 2017
@ghost
Copy link

ghost commented Apr 10, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants