@Andrea_Spacca I tested a quick change to x-pack/libbeat/common/aws/credentials.go
and it seems to work well to send the initial API calls the the default region variable if the region isn't already set. I can submit a PR for it?
func InitializeAWSConfig(config ConfigAWS) (awssdk.Config, error) {
AWSConfig, _ := GetAWSCredentials(config)
// Set default region if empty to make initial aws api call
if AWSConfig.Region == "" {
if config.DefaultRegion != "" {
AWSConfig.Region = config.DefaultRegion
} else {
AWSConfig.Region = "us-east-1"
}
}
....
}