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

ecrpublic migrated to aws-sdk-v2 #36427

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

alexknez
Copy link
Contributor

Description

This PR Migrates to AWS SDK v2 resources:

  • aws_ecrpublic_repository
  • aws_ecrpublic_repository_policy

and Data Source:

  • aws_ecrpublic_authorization_token

Relations

Closes #36150
Relates #32976

References

Output from Acceptance Testing

 AWS_DEFAULT_REGION=us-east-1; make testacc TESTARGS="-run=TestAccECRPublic" PKG=ecrpublic
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/ecrpublic/... -v -count 1 -parallel 20  -run=TestAccECRPublic -timeout 360m
=== RUN   TestAccECRPublicAuthorizationTokenDataSource_basic
--- PASS: TestAccECRPublicAuthorizationTokenDataSource_basic (8.44s)
=== RUN   TestAccECRPublicRepositoryPolicy_basic
=== PAUSE TestAccECRPublicRepositoryPolicy_basic
=== RUN   TestAccECRPublicRepositoryPolicy_disappears
=== PAUSE TestAccECRPublicRepositoryPolicy_disappears
=== RUN   TestAccECRPublicRepositoryPolicy_Disappears_repository
=== PAUSE TestAccECRPublicRepositoryPolicy_Disappears_repository
=== RUN   TestAccECRPublicRepositoryPolicy_iam
=== PAUSE TestAccECRPublicRepositoryPolicy_iam
=== RUN   TestAccECRPublicRepository_basic
=== PAUSE TestAccECRPublicRepository_basic
=== RUN   TestAccECRPublicRepository_tags
=== PAUSE TestAccECRPublicRepository_tags
=== RUN   TestAccECRPublicRepository_CatalogData_aboutText
=== PAUSE TestAccECRPublicRepository_CatalogData_aboutText
=== RUN   TestAccECRPublicRepository_CatalogData_architectures
=== PAUSE TestAccECRPublicRepository_CatalogData_architectures
=== RUN   TestAccECRPublicRepository_CatalogData_description
=== PAUSE TestAccECRPublicRepository_CatalogData_description
=== RUN   TestAccECRPublicRepository_CatalogData_operatingSystems
=== PAUSE TestAccECRPublicRepository_CatalogData_operatingSystems
=== RUN   TestAccECRPublicRepository_CatalogData_usageText
=== PAUSE TestAccECRPublicRepository_CatalogData_usageText
=== RUN   TestAccECRPublicRepository_CatalogData_logoImageBlob
=== PAUSE TestAccECRPublicRepository_CatalogData_logoImageBlob
=== RUN   TestAccECRPublicRepository_Basic_forceDestroy
=== PAUSE TestAccECRPublicRepository_Basic_forceDestroy
=== RUN   TestAccECRPublicRepository_disappears
=== PAUSE TestAccECRPublicRepository_disappears
=== CONT  TestAccECRPublicRepositoryPolicy_basic
=== CONT  TestAccECRPublicRepository_CatalogData_architectures
=== CONT  TestAccECRPublicRepository_CatalogData_logoImageBlob
=== CONT  TestAccECRPublicRepository_basic
=== CONT  TestAccECRPublicRepository_CatalogData_aboutText
=== CONT  TestAccECRPublicRepository_disappears
=== CONT  TestAccECRPublicRepository_CatalogData_operatingSystems
=== CONT  TestAccECRPublicRepositoryPolicy_Disappears_repository
=== CONT  TestAccECRPublicRepository_Basic_forceDestroy
=== CONT  TestAccECRPublicRepositoryPolicy_disappears
=== CONT  TestAccECRPublicRepository_tags
=== CONT  TestAccECRPublicRepository_CatalogData_usageText
=== CONT  TestAccECRPublicRepositoryPolicy_iam
=== CONT  TestAccECRPublicRepository_CatalogData_description
--- PASS: TestAccECRPublicRepository_disappears (34.03s)
--- PASS: TestAccECRPublicRepositoryPolicy_Disappears_repository (34.31s)
--- PASS: TestAccECRPublicRepositoryPolicy_disappears (34.74s)
--- PASS: TestAccECRPublicRepository_Basic_forceDestroy (38.30s)
--- PASS: TestAccECRPublicRepository_basic (39.03s)
--- PASS: TestAccECRPublicRepository_CatalogData_logoImageBlob (39.20s)
--- PASS: TestAccECRPublicRepository_CatalogData_architectures (48.58s)
--- PASS: TestAccECRPublicRepository_CatalogData_aboutText (51.10s)
--- PASS: TestAccECRPublicRepository_CatalogData_description (52.04s)
--- PASS: TestAccECRPublicRepository_CatalogData_usageText (52.12s)
--- PASS: TestAccECRPublicRepository_CatalogData_operatingSystems (52.29s)
--- PASS: TestAccECRPublicRepositoryPolicy_basic (52.36s)
--- PASS: TestAccECRPublicRepositoryPolicy_iam (52.59s)
--- PASS: TestAccECRPublicRepository_tags (58.60s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/ecrpublic  71.570s

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/ecrpublic Issues and PRs that pertain to the ecrpublic 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. and removed size/XL Managed by automation to categorize the size of a PR. labels Mar 17, 2024
@terraform-aws-provider terraform-aws-provider bot added needs-triage Waiting for first response or review from a maintainer. partner Contribution from a partner. labels Mar 17, 2024
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.

@alexknez alexknez force-pushed the feature-migrate-ecr-public-sdk-v2 branch 3 times, most recently from 7246c39 to 18e8f5b Compare March 17, 2024 03:32
@alexknez alexknez force-pushed the feature-migrate-ecr-public-sdk-v2 branch from 18e8f5b to 733e877 Compare March 17, 2024 03:40
@johnsonaj johnsonaj self-assigned this Mar 18, 2024
@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 Mar 18, 2024
@justinretzolk justinretzolk added provider Pertains to the provider itself, rather than any interaction with AWS. aws-sdk-go-migration Issues that are related to the providers migration to AWS SDK for Go v2. and removed needs-triage Waiting for first response or review from a maintainer. labels Mar 18, 2024
Copy link
Contributor

@johnsonaj johnsonaj left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

% AWS_DEFAULT_REGION=us-east-1 make testacc TESTARGS="-run=TestAccECRPublic" PKG=ecrpublic

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/ecrpublic/... -v -count 1 -parallel 20  -run=TestAccECRPublic -timeout 360m
--- PASS: TestAccECRPublicAuthorizationTokenDataSource_basic (6.52s)
--- PASS: TestAccECRPublicRepositoryPolicy_disappears (19.89s)
--- PASS: TestAccECRPublicRepository_disappears (20.40s)
--- PASS: TestAccECRPublicRepositoryPolicy_Disappears_repository (20.66s)
--- PASS: TestAccECRPublicRepository_basic (22.25s)
--- PASS: TestAccECRPublicRepository_CatalogData_logoImageBlob (23.70s)
--- PASS: TestAccECRPublicRepository_Basic_forceDestroy (23.91s)
--- PASS: TestAccECRPublicRepository_CatalogData_usageText (30.44s)
--- PASS: TestAccECRPublicRepository_CatalogData_description (31.92s)
--- PASS: TestAccECRPublicRepository_CatalogData_aboutText (32.14s)
--- PASS: TestAccECRPublicRepository_CatalogData_architectures (32.44s)
--- PASS: TestAccECRPublicRepository_CatalogData_operatingSystems (32.59s)
--- PASS: TestAccECRPublicRepositoryPolicy_basic (32.81s)
--- PASS: TestAccECRPublicRepositoryPolicy_iam (35.78s)
--- PASS: TestAccECRPublicRepository_tags (69.04s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ecrpublic	80.159s

@johnsonaj
Copy link
Contributor

@alexknez thank you for the contribution! 🎉

@johnsonaj johnsonaj merged commit 0bb9fba into hashicorp:main Mar 20, 2024
43 checks passed
@github-actions github-actions bot added this to the v5.42.0 milestone Mar 20, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Mar 22, 2024
Copy link

This functionality has been released in v5.42.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 Apr 22, 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. partner Contribution from a partner. provider Pertains to the provider itself, rather than any interaction with AWS. service/ecrpublic Issues and PRs that pertain to the ecrpublic service. 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.

[AWS SDK for Go Migration] ECR Public Service
3 participants