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 - add auto_termination_policy + use finder and waiter #21702

Merged
merged 11 commits into from
Nov 12, 2021

Conversation

DrFaust92
Copy link
Collaborator

@DrFaust92 DrFaust92 commented Nov 9, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Output from acceptance testing:

$ make testacc PKG_NAME=internal/service/emr TESTARGS='-run=TestAccEMRCluster_'
--- PASS: TestAccEMRCluster_autoTerminationPolicy (838.80s)
--- PASS: TestAccEMRCluster_basic (512.05s)
--- PASS: TestAccEMRCluster_security (523.91s)
--- PASS: TestAccEMRCluster_ebs (557.63s)
--- PASS: TestAccEMRCluster_Step_basic (559.03s)
--- PASS: TestAccEMRCluster_InstanceFleetMaster_only (562.39s)
--- PASS: TestAccEMRCluster_CustomAMI_id (589.19s)
--- PASS: TestAccEMRCluster_StepConcurrency_level (605.98s)
--- PASS: TestAccEMRCluster_RootVolume_size (877.99s)
--- PASS: TestAccEMRCluster_CoreInstanceGroup_name (1006.28s)
--- PASS: TestAccEMRCluster_keepJob (495.71s)
--- PASS: TestAccEMRCluster_s3Logging (616.76s)
--- PASS: TestAccEMRCluster_terminationProtected (623.97s)
--- PASS: TestAccEMRCluster_s3LogEncryption (780.77s)
--- PASS: TestAccEMRCluster_tags (826.06s)
--- PASS: TestAccEMRCluster_InstanceFleet_basic (1349.77s)
--- PASS: TestAccEMRCluster_Step_multiple (517.06s)
--- PASS: TestAccEMRCluster_visibleToAllUsers (924.45s)
--- PASS: TestAccEMRCluster_Kerberos_clusterDedicatedKdc (498.28s)
--- PASS: TestAccEMRCluster_Bootstrap_ordering (1393.20s)
--- PASS: TestAccEMRCluster_CoreInstanceGroup_autoScalingPolicy (666.06s)
--- PASS: TestAccEMRCluster_MasterInstanceGroup_instanceType (887.99s)
--- PASS: TestAccEMRCluster_MasterInstanceGroup_name (972.19s)
--- PASS: TestAccEMRCluster_Step_mode (1142.23s)
--- PASS: TestAccEMRCluster_MasterInstanceGroup_instanceCount (1219.69s)
--- PASS: TestAccEMRCluster_CoreInstanceGroup_instanceType (931.43s)
--- PASS: TestAccEMRCluster_MasterInstanceGroup_bidPrice (988.66s)
--- PASS: TestAccEMRCluster_disappears (432.07s)
--- PASS: TestAccEMRCluster_sJSON (428.82s)
--- PASS: TestAccEMRCluster_additionalInfo (447.87s)
--- PASS: TestAccEMRCluster_CoreInstanceGroup_instanceCount (1350.06s)
--- PASS: TestAccEMRCluster_CoreInstanceGroup_bidPrice (1070.08s)
--- PASS: TestAccEMRCluster_EC2Attributes_defaultManagedSecurityGroups (880.96s)

@github-actions github-actions bot added service/emr Issues and PRs that pertain to the emr service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/XL Managed by automation to categorize the size of a PR. labels Nov 9, 2021
@DrFaust92 DrFaust92 changed the title r/emr_cluster - add auto_termination_policy r/emr_cluster - add auto_termination_policy + use finder and waiter Nov 10, 2021
@DrFaust92 DrFaust92 added the enhancement Requests to existing resources that expand the functionality or scope. label Nov 11, 2021
@github-actions github-actions bot added the documentation Introduces or discusses updates to documentation. label Nov 11, 2021
@DrFaust92 DrFaust92 marked this pull request as ready for review November 11, 2021 16:29
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% make testacc PKG_NAME=internal/service/emr TESTARGS='-run=TestAccEMRCluster_'                              
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/emr/... -v -count 1 -parallel 20 -run=TestAccEMRCluster_ -timeout 180m
=== RUN   TestAccEMRCluster_basic
=== PAUSE TestAccEMRCluster_basic
=== RUN   TestAccEMRCluster_autoTerminationPolicy
=== PAUSE TestAccEMRCluster_autoTerminationPolicy
=== RUN   TestAccEMRCluster_additionalInfo
=== PAUSE TestAccEMRCluster_additionalInfo
=== RUN   TestAccEMRCluster_disappears
=== PAUSE TestAccEMRCluster_disappears
=== RUN   TestAccEMRCluster_sJSON
=== PAUSE TestAccEMRCluster_sJSON
=== RUN   TestAccEMRCluster_CoreInstanceGroup_autoScalingPolicy
=== PAUSE TestAccEMRCluster_CoreInstanceGroup_autoScalingPolicy
=== RUN   TestAccEMRCluster_CoreInstanceGroup_bidPrice
=== PAUSE TestAccEMRCluster_CoreInstanceGroup_bidPrice
=== RUN   TestAccEMRCluster_CoreInstanceGroup_instanceCount
=== PAUSE TestAccEMRCluster_CoreInstanceGroup_instanceCount
=== RUN   TestAccEMRCluster_CoreInstanceGroup_instanceType
=== PAUSE TestAccEMRCluster_CoreInstanceGroup_instanceType
=== RUN   TestAccEMRCluster_CoreInstanceGroup_name
=== PAUSE TestAccEMRCluster_CoreInstanceGroup_name
=== RUN   TestAccEMRCluster_EC2Attributes_defaultManagedSecurityGroups
=== PAUSE TestAccEMRCluster_EC2Attributes_defaultManagedSecurityGroups
=== RUN   TestAccEMRCluster_Kerberos_clusterDedicatedKdc
=== PAUSE TestAccEMRCluster_Kerberos_clusterDedicatedKdc
=== RUN   TestAccEMRCluster_MasterInstanceGroup_bidPrice
=== PAUSE TestAccEMRCluster_MasterInstanceGroup_bidPrice
=== RUN   TestAccEMRCluster_MasterInstanceGroup_instanceCount
=== PAUSE TestAccEMRCluster_MasterInstanceGroup_instanceCount
=== RUN   TestAccEMRCluster_MasterInstanceGroup_instanceType
=== PAUSE TestAccEMRCluster_MasterInstanceGroup_instanceType
=== RUN   TestAccEMRCluster_MasterInstanceGroup_name
=== PAUSE TestAccEMRCluster_MasterInstanceGroup_name
=== RUN   TestAccEMRCluster_security
=== PAUSE TestAccEMRCluster_security
=== RUN   TestAccEMRCluster_Step_basic
=== PAUSE TestAccEMRCluster_Step_basic
=== RUN   TestAccEMRCluster_Step_mode
=== PAUSE TestAccEMRCluster_Step_mode
=== RUN   TestAccEMRCluster_Step_multiple
=== PAUSE TestAccEMRCluster_Step_multiple
=== RUN   TestAccEMRCluster_Bootstrap_ordering
=== PAUSE TestAccEMRCluster_Bootstrap_ordering
=== RUN   TestAccEMRCluster_terminationProtected
=== PAUSE TestAccEMRCluster_terminationProtected
=== RUN   TestAccEMRCluster_keepJob
=== PAUSE TestAccEMRCluster_keepJob
=== RUN   TestAccEMRCluster_visibleToAllUsers
=== PAUSE TestAccEMRCluster_visibleToAllUsers
=== RUN   TestAccEMRCluster_s3Logging
=== PAUSE TestAccEMRCluster_s3Logging
=== RUN   TestAccEMRCluster_s3LogEncryption
=== PAUSE TestAccEMRCluster_s3LogEncryption
=== RUN   TestAccEMRCluster_tags
=== PAUSE TestAccEMRCluster_tags
=== RUN   TestAccEMRCluster_RootVolume_size
=== PAUSE TestAccEMRCluster_RootVolume_size
=== RUN   TestAccEMRCluster_StepConcurrency_level
=== PAUSE TestAccEMRCluster_StepConcurrency_level
=== RUN   TestAccEMRCluster_ebs
=== PAUSE TestAccEMRCluster_ebs
=== RUN   TestAccEMRCluster_CustomAMI_id
=== PAUSE TestAccEMRCluster_CustomAMI_id
=== RUN   TestAccEMRCluster_InstanceFleet_basic
=== PAUSE TestAccEMRCluster_InstanceFleet_basic
=== RUN   TestAccEMRCluster_InstanceFleetMaster_only
=== PAUSE TestAccEMRCluster_InstanceFleetMaster_only
=== CONT  TestAccEMRCluster_RootVolume_size
=== CONT  TestAccEMRCluster_basic
=== CONT  TestAccEMRCluster_tags
=== CONT  TestAccEMRCluster_s3LogEncryption
=== CONT  TestAccEMRCluster_s3Logging
=== CONT  TestAccEMRCluster_visibleToAllUsers
=== CONT  TestAccEMRCluster_keepJob
=== CONT  TestAccEMRCluster_terminationProtected
=== CONT  TestAccEMRCluster_Bootstrap_ordering
=== CONT  TestAccEMRCluster_Step_multiple
=== CONT  TestAccEMRCluster_Step_mode
=== CONT  TestAccEMRCluster_Step_basic
=== CONT  TestAccEMRCluster_CoreInstanceGroup_instanceType
=== CONT  TestAccEMRCluster_CoreInstanceGroup_instanceCount
=== CONT  TestAccEMRCluster_CoreInstanceGroup_bidPrice
=== CONT  TestAccEMRCluster_CoreInstanceGroup_autoScalingPolicy
=== CONT  TestAccEMRCluster_sJSON
=== CONT  TestAccEMRCluster_disappears
=== CONT  TestAccEMRCluster_additionalInfo
=== CONT  TestAccEMRCluster_CoreInstanceGroup_name
--- PASS: TestAccEMRCluster_basic (401.86s)
=== CONT  TestAccEMRCluster_autoTerminationPolicy
--- PASS: TestAccEMRCluster_disappears (409.54s)
=== CONT  TestAccEMRCluster_InstanceFleet_basic
--- PASS: TestAccEMRCluster_sJSON (426.22s)
=== CONT  TestAccEMRCluster_InstanceFleetMaster_only
--- PASS: TestAccEMRCluster_keepJob (442.78s)
=== CONT  TestAccEMRCluster_ebs
--- PASS: TestAccEMRCluster_Step_basic (449.33s)
=== CONT  TestAccEMRCluster_CustomAMI_id
--- PASS: TestAccEMRCluster_additionalInfo (499.56s)
=== CONT  TestAccEMRCluster_StepConcurrency_level
--- PASS: TestAccEMRCluster_CoreInstanceGroup_instanceCount (582.07s)
=== CONT  TestAccEMRCluster_security
--- PASS: TestAccEMRCluster_terminationProtected (599.25s)
=== CONT  TestAccEMRCluster_MasterInstanceGroup_instanceCount
--- PASS: TestAccEMRCluster_Step_multiple (603.05s)
=== CONT  TestAccEMRCluster_MasterInstanceGroup_bidPrice
--- PASS: TestAccEMRCluster_CoreInstanceGroup_autoScalingPolicy (624.26s)
=== CONT  TestAccEMRCluster_EC2Attributes_defaultManagedSecurityGroups
--- PASS: TestAccEMRCluster_s3Logging (633.31s)
=== CONT  TestAccEMRCluster_MasterInstanceGroup_instanceType
--- PASS: TestAccEMRCluster_s3LogEncryption (745.58s)
=== CONT  TestAccEMRCluster_MasterInstanceGroup_name
--- PASS: TestAccEMRCluster_tags (882.46s)
=== CONT  TestAccEMRCluster_Kerberos_clusterDedicatedKdc
--- PASS: TestAccEMRCluster_Step_mode (923.08s)
--- PASS: TestAccEMRCluster_RootVolume_size (938.64s)
--- PASS: TestAccEMRCluster_CoreInstanceGroup_name (946.57s)
--- PASS: TestAccEMRCluster_InstanceFleetMaster_only (534.48s)
--- PASS: TestAccEMRCluster_visibleToAllUsers (977.59s)
--- PASS: TestAccEMRCluster_CoreInstanceGroup_instanceType (986.17s)
--- PASS: TestAccEMRCluster_CustomAMI_id (562.15s)
--- PASS: TestAccEMRCluster_StepConcurrency_level (518.19s)
--- PASS: TestAccEMRCluster_autoTerminationPolicy (659.55s)
--- PASS: TestAccEMRCluster_CoreInstanceGroup_bidPrice (1066.38s)
--- PASS: TestAccEMRCluster_security (490.75s)
--- PASS: TestAccEMRCluster_ebs (738.34s)
--- PASS: TestAccEMRCluster_Kerberos_clusterDedicatedKdc (406.51s)
--- PASS: TestAccEMRCluster_Bootstrap_ordering (1294.28s)
--- PASS: TestAccEMRCluster_MasterInstanceGroup_instanceType (798.35s)
--- PASS: TestAccEMRCluster_InstanceFleet_basic (1044.22s)
--- PASS: TestAccEMRCluster_MasterInstanceGroup_bidPrice (864.29s)
--- PASS: TestAccEMRCluster_EC2Attributes_defaultManagedSecurityGroups (859.70s)
--- PASS: TestAccEMRCluster_MasterInstanceGroup_name (870.92s)
--- PASS: TestAccEMRCluster_MasterInstanceGroup_instanceCount (1158.59s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/emr	1761.361s

@ewbankkit
Copy link
Contributor

@DrFaust92 Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 47aa54d into hashicorp:main Nov 12, 2021
@github-actions github-actions bot added this to the v3.66.0 milestone Nov 12, 2021
@github-actions
Copy link

This functionality has been released in v3.66.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@DrFaust92 DrFaust92 deleted the r/emr_cluster_ttl branch November 19, 2021 22:22
@github-actions
Copy link

github-actions bot commented Jun 1, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. service/emr Issues and PRs that pertain to the emr service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants