4 Commits

Author SHA1 Message Date
Tiago Silva e54bfb9ab7 enforce region validation on all AWS config loading (#64893)
* enforce region validation on all AWS config loading

Replace direct uses of `github.com/aws/aws-sdk-go-v2/config.LoadDefaultConfig`
with the internal `lib/cloud/aws/config.LoadDefaultConfig` wrapper, which
validates any explicitly requested AWS region before use. Enforces this via a
new forbidigo linter rule.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* Apply suggestions from code review

Co-authored-by: Nic Klaassen <nic@nicklaassen.ca>

* fix unit tests

* include underscores and uppercase letters

* add ConfigureRegion

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
Co-authored-by: Nic Klaassen <nic@nicklaassen.ca>
2026-04-07 08:48:47 +00:00
Gavin Frazar 228c1c9f6f Rename lib/cloud/aws/config to lib/cloud/awsconfig (#50254) 2024-12-16 18:26:46 +00:00
rosstimothy 460ac5ea3b Use builtin tracing machinery of aws-sdk-go-v2 (#49826)
Replaces the use of go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws
with the tracing support now provided directly by the aws sdk.
See https://github.com/aws/aws-sdk-go-v2/discussions/2810 for more
details.

Some additional aws clients were also updated to include tracing
support.
2024-12-06 14:41:33 +00:00
Andrew Burke 98ba4c9673 Migrate discovery EC2 clients to AWS SDK v2 (#48950)
This change migrates the EC2 clients used in the discovery service
to the v2 AWS SDK.
2024-11-19 19:02:53 +00:00