Commit c40baa1a by Mitsuhiro Tanda

use default region to call DescribeRegions

parent e7f6cdc6
......@@ -239,7 +239,8 @@ func (e *CloudWatchExecutor) handleGetRegions(ctx context.Context, parameters *s
"cn-north-1", "cn-northwest-1", "us-gov-east-1", "us-gov-west-1", "us-isob-east-1", "us-iso-east-1",
}
err := e.ensureClientSession("us-east-1")
defaultRegion := e.DataSource.JsonData.Get("defaultRegion").MustString()
err := e.ensureClientSession(defaultRegion)
if err != nil {
return nil, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment