Skip to content

Migrate AWS discovery code to a new AWS SDK #15572

@ptodev

Description

@ptodev

Proposal

Currently, AWS SD depends on aws-sdk-go, which is deprecated. It will not be supported after 7/31/2025. Users are advised to migrate to AWS SDK for Go v2.

Migrating to the new SDK would also improve memory consumption a little bit. In Grafana Alloy, I noticed that github.com/aws/aws-sdk-go/aws/endpoints.init allocates 1.5 MB of memory even if this service discovery is not configured. I suppose Prometheus has the same problem. The memory consumption could add up if users are running hundreds of Prometheus/Alloy instances. It looks like this problem is fixed in v2 of the SDK.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions