awslabs / amazon-s3-tar-tool

A utility tool to create a tarball of existing objects in Amazon S3
Apache License 2.0
173 stars 12 forks source link

chore: validate region name when endpoint URL is not informed #7

Closed lazize closed 1 year ago

lazize commented 1 year ago

Description of changes: Validate region name when Endpoint URL is not informed.

It will generate a error like the one below when region name is invalid.

2023/04/04 21:28:27 unable to describe region name 'us--east-1', operation error EC2: DescribeRegions, https response error StatusCode: 400, RequestID: f37fc266-48d4-4a58-81c5-9a28ca4c79f9, api error InvalidParameterValue: Invalid region: [us--east-1]

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

yanko7 commented 1 year ago

This is fixed on v1.0.7