From 80204618210c09410b78d714d80eeb77f55b42fc Mon Sep 17 00:00:00 2001 From: Roman Khavronenko Date: Tue, 24 Jan 2023 10:42:55 +0100 Subject: [PATCH] discover/ec2: bump API version (#3702) Switch to the actual API version `2016-11-15`, since the old version doesn't provide access to all the fields which implementation expects. For example, old API missing `zone_id` field in `DescribeAvailabilityZonesResponse` response. See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3700 Signed-off-by: hagen1778 Signed-off-by: hagen1778 --- lib/awsapi/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awsapi/config.go b/lib/awsapi/config.go index e10d84736..bd52c75c6 100644 --- a/lib/awsapi/config.go +++ b/lib/awsapi/config.go @@ -108,7 +108,7 @@ func (cfg *Config) GetEC2APIResponse(action, filtersQueryString, nextPageToken s if len(nextPageToken) > 0 { apiURL += fmt.Sprintf("&NextToken=%s", url.QueryEscape(nextPageToken)) } - apiURL += "&Version=2013-10-15" + apiURL += "&Version=2016-11-15" req, err := newSignedGetRequest(apiURL, "ec2", cfg.region, ac) if err != nil { return nil, fmt.Errorf("cannot create signed request: %w", err)