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

New Service: AWS Recycle Bin #25926

Merged
merged 24 commits into from
Mar 29, 2023
Merged

Conversation

rlizzo
Copy link
Contributor

@rlizzo rlizzo commented Jul 21, 2022

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 #23160

Output from acceptance testing:

$ make testacc TESTS='TestAccRBinRBinRule_' PKG=rbin
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rbin/... -v -count 1 -parallel 20 -run='TestAccRBinRBinRule_'  -timeout 180m
=== RUN   TestAccRBinRBinRule_basic
=== PAUSE TestAccRBinRBinRule_basic
=== RUN   TestAccRBinRBinRule_disappears
=== PAUSE TestAccRBinRBinRule_disappears
=== CONT  TestAccRBinRBinRule_basic
=== CONT  TestAccRBinRBinRule_disappears
--- PASS: TestAccRBinRBinRule_disappears (9.95s)
--- PASS: TestAccRBinRBinRule_basic (13.77s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/rbin	13.826s

Notes:

  • This is my first time writing a Terraform provider, and while I'm sure there are many improvements to make I would specifically ask that the reviewers suggest more acceptance tests which should be written. The testing is really on the "light" side right now.

@github-actions github-actions bot added client-connections Pertains to the AWS Client and service connections. documentation Introduces or discusses updates to documentation. generators Relates to code generators. provider Pertains to the provider itself, rather than any interaction with AWS. service/rbin Issues and PRs that pertain to the rbin service. tags Pertains to resource tagging. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. needs-triage Waiting for first response or review from a maintainer. size/XL Managed by automation to categorize the size of a PR. labels Jul 21, 2022
@github-actions
Copy link

Thank you for your contribution! 🚀

Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the go.mod or go.sum files and commit them into this pull request.

Additional details:

  • Check open pull requests with the dependencies label to view other dependency updates.
  • If this pull request includes an update the AWS Go SDK (or any other dependency) version, only updates submitted via dependabot will be merged. This pull request will need to remove these changes and will need to be rebased after the existing dependency update via dependabot has been merged for this pull request to be reviewed.
  • If this pull request is for supporting a new AWS service:
    • Ensure the new AWS service changes are following the Contributing Guide section on new services, in particular that the dependency addition and initial provider support are in a separate pull request from other changes (e.g. new resources). Contributions not following this item will not be reviewed until the changes are split.
    • If this pull request is already a separate pull request from the above item, you can ignore this message.

@rlizzo
Copy link
Contributor Author

rlizzo commented Jul 21, 2022

Question for the maintainer team about the bot note:

Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the go.mod or go.sum files and commit them into this pull request.

The github.com/aws/aws-sdk-go-v2/service/rbin package is required for this PR to be merged. If I roll back these changes the code no longer compiles. How are these situations handled?

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 @rlizzo 👋

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! 😃

@justinretzolk justinretzolk added new-resource Introduces a new resource. new-service Introduces a new service. new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 25, 2022
@sahaqaa
Copy link

sahaqaa commented Feb 16, 2023

Hello, is there any update on this? This feature would be good to have :-) Looking forward to seeing it implemented

@jar-b
Copy link
Member

jar-b commented Feb 23, 2023

The github.com/aws/aws-sdk-go-v2/service/rbin package is required for this PR to be merged. If I roll back these changes the code no longer compiles. How are these situations handled?

Hey @rlizzo 👋, thanks for opening this! For a new service, we typically split the client registration into it's own PR. This prevents the constant merge conflicts in the generated files.

Would you mind opening a separate PR to add the new recycle bin client (you'll get the same automated note as above, but it's fine for this situation), leaving this PR with just the new resource implementation?

@github-actions github-actions bot removed the client-connections Pertains to the AWS Client and service connections. label Mar 22, 2023
@nam054 nam054 force-pushed the f-aws_rbin_rule-service branch 2 times, most recently from 4aea99f to 482ceb7 Compare March 23, 2023 18:07
Rename resource and edit name in files. Some edits to the documentation.
@nam054 nam054 force-pushed the f-aws_rbin_rule-service branch 2 times, most recently from 6ce390b to f86c055 Compare March 23, 2023 20:35
Sharon Nam added 4 commits March 23, 2023 13:54
Change to use `enum.Slice()` to convert a slice of typed string enums to
a slice of strings in wait functions.
@jar-b jar-b removed the new-data-source Introduces a new data source. label Mar 29, 2023
Copy link
Member

@jar-b jar-b 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=rbin
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/rbin/... -v -count 1 -parallel 20   -timeout 180m
=== RUN   TestAccRBinRule_basic
=== PAUSE TestAccRBinRule_basic
=== RUN   TestAccRBinRule_disappears
=== PAUSE TestAccRBinRule_disappears
=== RUN   TestAccRBinRule_tags
=== PAUSE TestAccRBinRule_tags
=== RUN   TestAccRBinRule_lock_config
=== PAUSE TestAccRBinRule_lock_config
=== CONT  TestAccRBinRule_basic
=== CONT  TestAccRBinRule_lock_config
=== CONT  TestAccRBinRule_tags
=== CONT  TestAccRBinRule_disappears
--- PASS: TestAccRBinRule_disappears (10.98s)
--- PASS: TestAccRBinRule_lock_config (12.86s)
--- PASS: TestAccRBinRule_basic (14.88s)
--- PASS: TestAccRBinRule_tags (31.87s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/rbin       35.008s

@nam054 nam054 merged commit a977564 into hashicorp:main Mar 29, 2023
@github-actions github-actions bot added this to the v4.61.0 milestone Mar 29, 2023
@github-actions
Copy link

This functionality has been released in v4.61.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 1, 2023

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 1, 2023
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. generators Relates to code generators. new-resource Introduces a new resource. new-service Introduces a new service. provider Pertains to the provider itself, rather than any interaction with AWS. service/rbin Issues and PRs that pertain to the rbin service. size/XL Managed by automation to categorize the size of a PR. tags Pertains to resource tagging. 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 RecycleBin
5 participants