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

ds/resource_aws_elasticsearch_domain: add support cold storage option for aws_elasticsearch_domain config #19713

Merged
merged 36 commits into from
Mar 25, 2022

Conversation

GavinWu1991
Copy link
Contributor

@GavinWu1991 GavinWu1991 commented Jun 8, 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

Closes #19593

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSElasticSearchDomain_witColdStorageOptions'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSElasticSearchDomain_witColdStorageOptions -timeout 180m
=== RUN   TestAccAWSElasticSearchDomain_witColdStorageOptions
=== PAUSE TestAccAWSElasticSearchDomain_witColdStorageOptions
=== CONT  TestAccAWSElasticSearchDomain_witColdStorageOptions
--- PASS: TestAccAWSElasticSearchDomain_witColdStorageOptions (2994.59s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       2996.488s

@GavinWu1991 GavinWu1991 requested a review from a team as a code owner June 8, 2021 14:33
@ghost ghost added the size/M Managed by automation to categorize the size of a PR. label Jun 8, 2021
@GavinWu1991 GavinWu1991 marked this pull request as draft June 8, 2021 14:34
@github-actions github-actions bot added service/elasticsearch Issues and PRs that pertain to the elasticsearch service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. needs-triage Waiting for first response or review from a maintainer. labels Jun 8, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @GavinWu1991 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@github-actions github-actions bot added the documentation Introduces or discusses updates to documentation. label Jun 8, 2021
@ghost ghost added size/L Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels Jun 9, 2021
@GavinWu1991 GavinWu1991 changed the title ds/aws_cloudwatch_metric_alarm: add support cold storage option for aws_elasticsearch_domain config ds/resource_aws_elasticsearch_domain: add support cold storage option for aws_elasticsearch_domain config Jun 9, 2021
@GavinWu1991 GavinWu1991 force-pushed the es_cluster_cold_storage_option branch from e094e9d to 885d210 Compare June 10, 2021 23:01
@GavinWu1991 GavinWu1991 marked this pull request as ready for review June 11, 2021 12:11
@breathingdust breathingdust added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 31, 2021
@zhelding
Copy link
Contributor

Pull request #21306 has significantly refactored the AWS Provider codebase. As a result, most PRs opened prior to the refactor now have merge conflicts that must be resolved before proceeding.

Specifically, PR #21306 relocated the code for all AWS resources and data sources from a single aws directory to a large number of separate directories in internal/service, each corresponding to a particular AWS service. This separation of code has also allowed for us to simplify the names of underlying functions -- while still avoiding namespace collisions.

We recognize that many pull requests have been open for some time without yet being addressed by our maintainers. Therefore, we want to make it clear that resolving these conflicts in no way affects the prioritization of a particular pull request. Once a pull request has been prioritized for review, the necessary changes will be made by a maintainer -- either directly or in collaboration with the pull request author.

For a more complete description of this refactor, including examples of how old filepaths and function names correspond to their new counterparts: please refer to issue #20000.

For a quick guide on how to amend your pull request to resolve the merge conflicts resulting from this refactor and bring it in line with our new code patterns: please refer to our Service Package Refactor Pull Request Guide.

@rifqifatih
Copy link

@GavinWu1991 are you still working on the PR?

@soostdijck
Copy link

I hate to post a empty post like this, but it would be great if this could get implemented. It's been pending for a long time now already. /paying tfcloud customer

@ewbankkit ewbankkit force-pushed the es_cluster_cold_storage_option branch from 9ec170c to c47a570 Compare March 25, 2022 10:19
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 TESTARGS='-run=TestAccElasticsearchDomain_basic\|TestAccElasticsearchDomain_withColdStorageOptions\|TestAccElasticsearchDomain_warm\|TestAccElasticsearchDomainDataSource_Data_basic' PKG=elasticsearch ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/elasticsearch/... -v -count 1 -parallel 2  -run=TestAccElasticsearchDomain_basic\|TestAccElasticsearchDomain_withColdStorageOptions\|TestAccElasticsearchDomain_warm\|TestAccElasticsearchDomainDataSource_Data_basic -timeout 180m
=== RUN   TestAccElasticsearchDomainDataSource_Data_basic
=== PAUSE TestAccElasticsearchDomainDataSource_Data_basic
=== RUN   TestAccElasticsearchDomain_basic
=== PAUSE TestAccElasticsearchDomain_basic
=== RUN   TestAccElasticsearchDomain_warm
=== PAUSE TestAccElasticsearchDomain_warm
=== RUN   TestAccElasticsearchDomain_withColdStorageOptions
=== PAUSE TestAccElasticsearchDomain_withColdStorageOptions
=== CONT  TestAccElasticsearchDomainDataSource_Data_basic
=== CONT  TestAccElasticsearchDomain_warm
--- PASS: TestAccElasticsearchDomainDataSource_Data_basic (1265.85s)
=== CONT  TestAccElasticsearchDomain_basic
--- PASS: TestAccElasticsearchDomain_basic (1088.68s)
=== CONT  TestAccElasticsearchDomain_withColdStorageOptions
--- PASS: TestAccElasticsearchDomain_warm (4047.97s)
=== CONT  TestAccElasticsearchDomain_withColdStorageOptions
--- PASS: TestAccElasticsearchDomain_withColdStorageOptions (3639.76s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/elasticsearch	6343.365s

@ewbankkit
Copy link
Contributor

@GavinWu1991 Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit bf9a866 into hashicorp:main Mar 25, 2022
@github-actions github-actions bot added this to the v4.8.0 milestone Mar 25, 2022
@github-actions
Copy link

This functionality has been released in v4.8.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!

@github-actions
Copy link

github-actions bot commented May 5, 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 May 5, 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/elasticsearch Issues and PRs that pertain to the elasticsearch 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.

Support cold storage option for aws_elasticsearch_domain config
7 participants