Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions lib/backend/dynamo/dynamodbbk.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,16 +281,21 @@ func New(ctx context.Context, params backend.Params) (*Backend, error) {

// Create DynamoDB service.
svc, err := dynamometrics.NewAPIMetrics(dynamometrics.Backend, dynamodb.New(b.session, &aws.Config{
// Setting this on the individual service instead of the session, as DynamoDB Streams
// and Application Auto Scaling do not yet have FIPS endpoints in non-GovCloud.
// Setting this on the individual service instead of the session, as Application Auto Scaling
// does not yet have FIPS endpoints in non-GovCloud.
// See also: https://aws.amazon.com/compliance/fips/#FIPS_Endpoints_by_Service
UseFIPSEndpoint: useFIPSEndpoint,
}))
if err != nil {
return nil, trace.Wrap(err)
}
b.svc = svc
streams, err := dynamometrics.NewStreamsMetricsAPI(dynamometrics.Backend, dynamodbstreams.New(b.session))
streams, err := dynamometrics.NewStreamsMetricsAPI(dynamometrics.Backend, dynamodbstreams.New(b.session, &aws.Config{
// Setting this on the individual service instead of the session, as Application Auto Scaling
// does not yet have FIPS endpoints in non-GovCloud.
// See also: https://aws.amazon.com/compliance/fips/#FIPS_Endpoints_by_Service
UseFIPSEndpoint: useFIPSEndpoint,
}))
if err != nil {
return nil, trace.Wrap(err)
}
Expand Down
Loading