diff --git a/main.go b/main.go index 7e81dba..5bdb346 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ import ( "context" "flag" "log" + "strings" "sync" "time" @@ -50,6 +51,10 @@ func main() { } if *endpoint != "" { + if !strings.HasPrefix(*endpoint, "http://") && !strings.HasPrefix(*endpoint, "https://") { + *endpoint = "https://" + *endpoint + } + options = append(options, config.WithEndpointResolverWithOptions(aws.EndpointResolverWithOptionsFunc( func(service, region string, options ...interface{}) (aws.Endpoint, error) { return aws.Endpoint{