Skip to content

Commit

Permalink
Disable account id based endpoints for dynamodb
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanthkrishnan committed Jan 24, 2025
1 parent 1ef0f74 commit b5dc63d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ type Service struct {
}

func NewService(cfg *Config) (*Service, error) {
awsConfig, err := config.LoadDefaultConfig(context.Background(), config.WithRegion(cfg.AWS.Region))
//TODO enable account id endpoint mode, after updating firewall rules
// https://github.com/aws/aws-sdk-go-v2/issues/2807
awsConfig, err := config.LoadDefaultConfig(context.Background(), config.WithRegion(cfg.AWS.Region),
config.WithAccountIDEndpointMode(aws.AccountIDEndpointModeDisabled))
if err != nil {
log.Err(err).Msg("unable to load SDK config")
return nil, err
Expand Down

0 comments on commit b5dc63d

Please sign in to comment.