Skip to content

feat: migrate AWS SDK from v1 to v2#299

Merged
kp2099 merged 2 commits intohashicorp:mainfrom
thevilledev:feat/aws-sdk-go-v2
Dec 15, 2025
Merged

feat: migrate AWS SDK from v1 to v2#299
kp2099 merged 2 commits intohashicorp:mainfrom
thevilledev:feat/aws-sdk-go-v2

Conversation

@thevilledev
Copy link
Copy Markdown
Contributor

@thevilledev thevilledev commented Aug 10, 2025

Description

aws-sdk-go v1 reached EOL at the end of July 2025.

Replace aws-sdk-go v1.44.114 with aws-sdk-go-v2 modules and update AWS Secrets Manager implementation to use v2 patterns with context support and custom interfaces.

Also noting that aws-sdk-go v1 is applicable to the following Go vulnerability reports:

Github CodeQL picks this up in Packer plugin implementations and complains about it.

After this is merged in the project still has an indirect dependency to aws-sdk-go v1. It comes from hashicorp/go-getter and depends on this PR. hashicorp/go-getter#467

Resolved Issues

None.

Rollback Plan

Easy to revert, after which the SDK is back on v1.

Changes to Security Controls

No.

@thevilledev thevilledev requested a review from a team as a code owner August 10, 2025 18:29
aws-sdk-go v1 reached EOL at the end of July 2025.
Replace aws-sdk-go v1.44.114 with aws-sdk-go-v2 modules and
update AWS Secrets Manager implementation to use v2
patterns with context support and custom interfaces.

Signed-off-by: Ville Vesilehto <ville.vesilehto@upcloud.com>
@tenthirtyam
Copy link
Copy Markdown

@kp2099

@thevilledev thevilledev mentioned this pull request Nov 24, 2025
Copy link
Copy Markdown
Contributor

@kp2099 kp2099 left a comment

Choose a reason for hiding this comment

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

The changes look good to me. Thank you so much for your contribution!

@kp2099 kp2099 merged commit 3ac76fe into hashicorp:main Dec 15, 2025
1 check passed
@kp2099
Copy link
Copy Markdown
Contributor

kp2099 commented Dec 15, 2025

The release for this package and go mod update in packer, will probably happen in Jan 2026, considering code freeze at our org.

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.

3 participants