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

Tech debt: Migrate cloudtrail resources to AWS SDK for Go v2 #35587

Merged
merged 17 commits into from
Feb 6, 2024

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Jan 31, 2024

Description

Ibid.

Relations

Relates #32976.

References

Output from Acceptance Testing

% make testacc TESTARGS='-run=TestAccCloudTrail' PKG=cloudtrail ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/cloudtrail/... -v -count 1 -parallel 2  -run=TestAccCloudTrail -timeout 360m
=== RUN   TestAccCloudTrail_serial
=== PAUSE TestAccCloudTrail_serial
=== RUN   TestAccCloudTrailEventDataStore_basic
=== PAUSE TestAccCloudTrailEventDataStore_basic
=== RUN   TestAccCloudTrailEventDataStore_kmsKeyId
=== PAUSE TestAccCloudTrailEventDataStore_kmsKeyId
=== RUN   TestAccCloudTrailEventDataStore_disappears
=== PAUSE TestAccCloudTrailEventDataStore_disappears
=== RUN   TestAccCloudTrailEventDataStore_tags
=== PAUSE TestAccCloudTrailEventDataStore_tags
=== RUN   TestAccCloudTrailEventDataStore_options
=== PAUSE TestAccCloudTrailEventDataStore_options
=== RUN   TestAccCloudTrailEventDataStore_advancedEventSelector
=== PAUSE TestAccCloudTrailEventDataStore_advancedEventSelector
=== RUN   TestAccCloudTrailServiceAccountDataSource_basic
=== PAUSE TestAccCloudTrailServiceAccountDataSource_basic
=== RUN   TestAccCloudTrailServiceAccountDataSource_region
=== PAUSE TestAccCloudTrailServiceAccountDataSource_region
=== CONT  TestAccCloudTrail_serial
=== CONT  TestAccCloudTrailEventDataStore_options
=== RUN   TestAccCloudTrail_serial/Trail
=== RUN   TestAccCloudTrail_serial/Trail/cloudwatch
--- PASS: TestAccCloudTrailEventDataStore_options (52.36s)
=== CONT  TestAccCloudTrailEventDataStore_tags
--- PASS: TestAccCloudTrailEventDataStore_tags (47.06s)
=== CONT  TestAccCloudTrailEventDataStore_disappears
=== RUN   TestAccCloudTrail_serial/Trail/logValidation
--- PASS: TestAccCloudTrailEventDataStore_disappears (18.45s)
=== CONT  TestAccCloudTrailEventDataStore_kmsKeyId
--- PASS: TestAccCloudTrailEventDataStore_kmsKeyId (27.93s)
=== CONT  TestAccCloudTrailEventDataStore_basic
=== RUN   TestAccCloudTrail_serial/Trail/insightSelector
--- PASS: TestAccCloudTrailEventDataStore_basic (21.85s)
=== CONT  TestAccCloudTrailServiceAccountDataSource_region
--- PASS: TestAccCloudTrailServiceAccountDataSource_region (11.72s)
=== CONT  TestAccCloudTrailEventDataStore_advancedEventSelector
--- PASS: TestAccCloudTrailEventDataStore_advancedEventSelector (22.35s)
=== CONT  TestAccCloudTrailServiceAccountDataSource_basic
--- PASS: TestAccCloudTrailServiceAccountDataSource_basic (11.44s)
=== RUN   TestAccCloudTrail_serial/Trail/advancedEventSelector
=== RUN   TestAccCloudTrail_serial/Trail/eventSelectorExclude
=== RUN   TestAccCloudTrail_serial/Trail/basic
=== RUN   TestAccCloudTrail_serial/Trail/enableLogging
=== RUN   TestAccCloudTrail_serial/Trail/kmsKey
=== RUN   TestAccCloudTrail_serial/Trail/tags
=== RUN   TestAccCloudTrail_serial/Trail/eventSelector
=== RUN   TestAccCloudTrail_serial/Trail/eventSelectorDynamoDB
=== RUN   TestAccCloudTrail_serial/Trail/globalServiceEvents
=== RUN   TestAccCloudTrail_serial/Trail/multiRegion
=== RUN   TestAccCloudTrail_serial/Trail/organization
=== RUN   TestAccCloudTrail_serial/Trail/disappears
=== RUN   TestAccCloudTrail_serial/Trail/migrateV0
--- PASS: TestAccCloudTrail_serial (667.76s)
    --- PASS: TestAccCloudTrail_serial/Trail (667.76s)
        --- PASS: TestAccCloudTrail_serial/Trail/cloudwatch (62.88s)
        --- PASS: TestAccCloudTrail_serial/Trail/logValidation (44.89s)
        --- PASS: TestAccCloudTrail_serial/Trail/insightSelector (78.19s)
        --- PASS: TestAccCloudTrail_serial/Trail/advancedEventSelector (27.07s)
        --- PASS: TestAccCloudTrail_serial/Trail/eventSelectorExclude (62.71s)
        --- PASS: TestAccCloudTrail_serial/Trail/basic (46.51s)
        --- PASS: TestAccCloudTrail_serial/Trail/enableLogging (67.83s)
        --- PASS: TestAccCloudTrail_serial/Trail/kmsKey (28.25s)
        --- PASS: TestAccCloudTrail_serial/Trail/tags (57.18s)
        --- PASS: TestAccCloudTrail_serial/Trail/eventSelector (88.92s)
        --- PASS: TestAccCloudTrail_serial/Trail/eventSelectorDynamoDB (27.98s)
        --- PASS: TestAccCloudTrail_serial/Trail/globalServiceEvents (26.59s)
        --- PASS: TestAccCloudTrail_serial/Trail/multiRegion (57.43s)
        --- PASS: TestAccCloudTrail_serial/Trail/organization (61.43s)
        --- PASS: TestAccCloudTrail_serial/Trail/disappears (23.61s)
        --- PASS: TestAccCloudTrail_serial/Trail/migrateV0 (81.41s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/cloudtrail	678.641s

Copy link

Community Note

Voting for Prioritization

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

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/cloudtrail Issues and PRs that pertain to the cloudtrail service. sweeper Pertains to changes to or issues with the sweeper. tags Pertains to resource tagging. client-connections Pertains to the AWS Client and service connections. generators Relates to code generators. labels Jan 31, 2024
Copy link

Thank you for your contribution! 🚀

A new usage of AWS SDK for Go V1 was detected. Please prefer AWS SDK for Go V2 for all net-new services. If this is an enhancement or bug fix to an existing AWS SDK Go V1 based resource, this comment can be safely ignored.

For additional information refer to the AWS SDK for Go Versions page in the contributor guide.

@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Jan 31, 2024
@github-actions github-actions bot added the service/controltower Issues and PRs that pertain to the controltower service. label Feb 1, 2024
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 TESTARGS='-run=TestAccCloudTrail' PKG=cloudtrail
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/cloudtrail/... -v -count 1 -parallel 20  -run=TestAccCloudTrail -timeout 360m

--- SKIP: TestAccCloudTrailEventDataStore_options (0.65s)
--- PASS: TestAccCloudTrailServiceAccountDataSource_basic (8.55s)
--- PASS: TestAccCloudTrailServiceAccountDataSource_region (8.76s)
--- PASS: TestAccCloudTrailEventDataStore_disappears (14.85s)
--- PASS: TestAccCloudTrailEventDataStore_advancedEventSelector (16.60s)
--- PASS: TestAccCloudTrailEventDataStore_basic (17.63s)
--- PASS: TestAccCloudTrailEventDataStore_kmsKeyId (21.67s)
--- PASS: TestAccCloudTrailEventDataStore_tags (31.01s)

--- PASS: TestAccCloudTrail_serial (521.72s)
    --- PASS: TestAccCloudTrail_serial/Trail (521.72s)
        --- PASS: TestAccCloudTrail_serial/Trail/logValidation (32.34s)
        --- PASS: TestAccCloudTrail_serial/Trail/eventSelectorDynamoDB (23.31s)
        --- PASS: TestAccCloudTrail_serial/Trail/migrateV0 (39.38s)
        --- PASS: TestAccCloudTrail_serial/Trail/basic (32.52s)
        --- PASS: TestAccCloudTrail_serial/Trail/globalServiceEvents (18.56s)
        --- SKIP: TestAccCloudTrail_serial/Trail/organization (0.57s)
        --- PASS: TestAccCloudTrail_serial/Trail/tags (40.59s)
        --- PASS: TestAccCloudTrail_serial/Trail/cloudwatch (45.24s)
        --- PASS: TestAccCloudTrail_serial/Trail/advancedEventSelector (19.43s)
        --- SKIP: TestAccCloudTrail_serial/Trail/enableLogging (24.02s)
        --- PASS: TestAccCloudTrail_serial/Trail/multiRegion (40.98s)
        --- PASS: TestAccCloudTrail_serial/Trail/kmsKey (21.26s)
        --- PASS: TestAccCloudTrail_serial/Trail/eventSelector (68.56s)
        --- PASS: TestAccCloudTrail_serial/Trail/eventSelectorExclude (43.87s)
        --- PASS: TestAccCloudTrail_serial/Trail/insightSelector (52.12s)
        --- PASS: TestAccCloudTrail_serial/Trail/disappears (18.95s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/cloudtrail 528.556s

@ewbankkit ewbankkit merged commit 6959a60 into main Feb 6, 2024
29 of 30 checks passed
@ewbankkit ewbankkit deleted the td-migrate-cloudtrail-to-aws-sdk-v2 branch February 6, 2024 21:09
@github-actions github-actions bot added this to the v5.36.0 milestone Feb 6, 2024
Copy link

github-actions bot commented Feb 8, 2024

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

Copy link

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 Mar 10, 2024
@justinretzolk justinretzolk added the aws-sdk-go-migration Issues that are related to the providers migration to AWS SDK for Go v2. label Mar 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
aws-sdk-go-migration Issues that are related to the providers migration to AWS SDK for Go v2. client-connections Pertains to the AWS Client and service connections. generators Relates to code generators. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/cloudtrail Issues and PRs that pertain to the cloudtrail service. service/controltower Issues and PRs that pertain to the controltower service. size/XL Managed by automation to categorize the size of a PR. sweeper Pertains to changes to or issues with the sweeper. 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.

3 participants