fix(aws): resolve endpoint if endpoint is passed (#4925)

* fix(aws): resolve endpoint to get identity if endpoint is passed

* resolve endpoint for ami and ebs

* return an error if aws region is missing
This commit is contained in:
Nikita Pivkin
2023-08-08 10:19:40 +03:00
committed by GitHub
parent f18b0db583
commit e8cf281471
10 changed files with 77 additions and 32 deletions

View File

@@ -32,7 +32,7 @@ func TestAwsCommandRun(t *testing.T) {
"AWS_ACCESS_KEY_ID": "test",
"AWS_SECRET_ACCESS_KEY": "test",
},
wantErr: "Invalid Configuration: Missing Region",
wantErr: "aws region is required",
},
{
name: "fail without creds",