Skip to content

Commit

Permalink
Merge pull request #180 from GeoNet/deprecateCustomAWS
Browse files Browse the repository at this point in the history
fix: use AWS_ENDPOINT_URL env var
  • Loading branch information
sue-h-gns authored Nov 10, 2024
2 parents 92be13d + f3eadde commit 27f35bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/keyspaces/keyspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func getConfig() (aws.Config, error) {
var cfg aws.Config
var err error

if awsEndpoint := os.Getenv("CUSTOM_AWS_ENDPOINT_URL"); awsEndpoint != "" {
if awsEndpoint := os.Getenv("AWS_ENDPOINT_URL"); awsEndpoint != "" {
customResolver := aws.EndpointResolverWithOptionsFunc(func(service, region string, options ...interface{}) (aws.Endpoint, error) {
return aws.Endpoint{
PartitionID: "aws",
Expand Down

0 comments on commit 27f35bc

Please sign in to comment.