Skip to content

Conversation

@olblak
Copy link
Member

@olblak olblak commented Sep 9, 2025

The golang library aws-sdk-go is out of maintenance so this pullrequest upgrade to aws-sdk-go-v2 as explained from https://docs.aws.amazon.com/sdk-for-go/v2/developer-guide/migrate-gosdk.html

Test

To test this pull request, you can run the following commands:

cd pkg/plugins/resources/awsami/
go test .
  • To test manually

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.

Tradeoff

Potential improvement

@olblak olblak added dependencies Pull requests that update a dependency file resource-aws-ami Resource of kind AWS AMI chore labels Sep 9, 2025
@olblak olblak requested a review from dduportal September 10, 2025 15:03
@olblak olblak requested a review from Copilot September 12, 2025 13:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the AWS SDK from the legacy aws-sdk-go v1 to the newer aws-sdk-go-v2 as part of maintenance since the v1 SDK is out of maintenance.

  • Updates all AWS SDK imports to use v2 packages
  • Refactors client initialization to use the new v2 configuration pattern
  • Updates type definitions and function signatures to match v2 API changes

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pkg/plugins/resources/awsami/sort.go Updates type definitions from pointer slices to value slices for Image types
pkg/plugins/resources/awsami/main.go Major refactor of client initialization and configuration using v2 patterns
pkg/plugins/resources/awsami/helpers.go Updates error handling and type access patterns for v2 compatibility
pkg/plugins/resources/awsami/data_test.go Updates test mocks and data structures to match v2 API
pkg/plugins/resources/awsami/condition_test.go Updates test assertions and adds required enum values for v2 types
go.mod Adds v2 SDK dependencies and removes v1 dependencies

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@olblak olblak requested a review from Copilot September 22, 2025 10:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@dduportal dduportal self-assigned this Sep 23, 2025
Copy link
Contributor

@dduportal dduportal left a comment

Choose a reason for hiding this comment

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

@olblak
Copy link
Member Author

olblak commented Sep 23, 2025

Thank you very much for testing

@olblak olblak merged commit 5a1d3a5 into updatecli:main Sep 23, 2025
5 of 6 checks passed
@olblak olblak deleted the deps/bump/aws-sdk-go-v2 branch September 23, 2025 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore dependencies Pull requests that update a dependency file resource-aws-ami Resource of kind AWS AMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants