Skip to content

[extension/ecsobserver] update to aws-sdk-go-v2 #39397

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mjlshen
Copy link
Contributor

@mjlshen mjlshen commented Apr 15, 2025

Description
aws-sdk-go is being deprecated on July 31, 2025. This PR updates extension/ecsobserver

Link to tracking issue
Fixes #37727

Testing
I converted the existing unit tests to aws-sdk-go-v2 as well, keeping the original intent of the tests.

for _, t := range tasks {
arn2Def[aws.StringValue(t.TaskDefinitionArn)] = nil
if t.TaskDefinitionArn != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A couple tests run into null-pointer exceptions if this nil-check is removed and fail after this nil-check is added. I'll need to spend some more time digging into why and how the mock interacts with this, but thought I would share this draft PR in the meantime in case someone else understands this better.

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[extension/ecsobserver] migrate to AWS v2 SDK
1 participant