|
|
|
|
@ -54,11 +54,11 @@ func (c *AccessConfig) Session() (*session.Session, error) {
|
|
|
|
|
// retries are exponentially backed off.
|
|
|
|
|
config = config.WithMaxRetries(8)
|
|
|
|
|
|
|
|
|
|
region, err := c.region()
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, fmt.Errorf("Could not get region, "+
|
|
|
|
|
"probably because it's not set or we're not running on AWS. %s", err)
|
|
|
|
|
}
|
|
|
|
|
region, _ := c.region()
|
|
|
|
|
// if err != nil {
|
|
|
|
|
// return nil, fmt.Errorf("Could not get region, "+
|
|
|
|
|
// "probably because it's not set or we're not running on AWS. %s", err)
|
|
|
|
|
// }
|
|
|
|
|
config = config.WithRegion(region)
|
|
|
|
|
|
|
|
|
|
if c.CustomEndpointEc2 != "" {
|
|
|
|
|
|