Skip to content

chore(deps): Upgrade AWS SDK to v2#16950

Merged
sysadmind merged 6 commits intoprometheus:mainfrom
sysadmind:aws-sdk-go-v2
Aug 8, 2025
Merged

chore(deps): Upgrade AWS SDK to v2#16950
sysadmind merged 6 commits intoprometheus:mainfrom
sysadmind:aws-sdk-go-v2

Conversation

@sysadmind
Copy link
Contributor

AWS SDK v1 is end of life soon, so migrate to the V2 SDK. The credential loading should work more consistently with other projects that use the SDK and load credentials from the appropriate locations including from environment variables. This affects the EC2 and Lightsail service discovery features.

Fixes #15572
Supersedes #15735

I do not have access to an AWS environment currently to test this fully so if anyone would be kind enough to try this out and let me know their experience, I would be very grateful.

AWS SDK v1 is end of life soon, so migrate to the V2 SDK. The credential loading should work more consistently with other projects that use the SDK and load credentials from the appropriate locations including from environment variables. This affects the EC2 and Lightsail service discovery features.

Signed-off-by: Joe Adams <github@joeadams.io>
Signed-off-by: Joe Adams <github@joeadams.io>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks a lot! Added some comments, but generally looks good.

Some AWS setup would be nice to have.. shouldn't be hard, we could ask user mailing list or Slack, wanna ask there?

Signed-off-by: Joe Adams <github@joeadams.io>
Signed-off-by: Joe Adams <github@joeadams.io>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM, let's ping community on -dev for someone to test this, but otherwise we should time box this (1w?), merge and assume any bugs will be caught by tests or RC process.

@bwplotka
Copy link
Member

bwplotka commented Aug 1, 2025

Signed-off-by: Joe Adams <github@joeadams.io>
@bwplotka
Copy link
Member

bwplotka commented Aug 7, 2025

some tests are failing after merge to main @sysadmind

Otherwise I think we should merge slowly, we waited enough.

Signed-off-by: Joe Adams <github@joeadams.io>
@sysadmind
Copy link
Contributor Author

That's what I get for trying to resolve merge conflicts in the Github web UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate AWS discovery code to a new AWS SDK

2 participants