This commit is contained in:
Rémy Léone 2020-10-29 11:21:31 +01:00
parent 3413fc5c46
commit db96c5c9ae
1 changed files with 5 additions and 0 deletions

View File

@ -153,6 +153,11 @@ func (c *Config) Prepare(raws ...interface{}) ([]string, error) {
c.SecretKey = c.Token
}
if c.Region != "" {
warnings = append(warnings, "region is deprecated in favor of zone")
c.Zone = c.Region
}
if c.AccessKey == "" {
if profile.AccessKey != nil {
c.AccessKey = *profile.AccessKey