Closed dirkpetersen closed 1 week ago
The ~/.aws/config file had a bug: it did not add the word "profile" before the actual profile name. This is fixed in the already released froster v0.12.31. This bug is fixed, but this may differ from the reason you see this error.
Also, I expanded the exit error codes in this release when credentials are invalid. Please update Froster to v.12.31 or higher and recheck it.
Also, check the syntax on the ~/.aws/credentials file.
Thanks
@victormachadoperez , in this case it is important that the froster config only references the aws profile but does not duplicate any aws configurations beyond that, for example region information, etc does not belong in the froster config. The reason for this is more difficult trouble shooting for IT staff. An early version of froster used to duplicate this information and it lead to inconsistencies so i changed it
@victormachadoperez .... i believe this is not working because in line 1426
https://github.com/dirkpetersen/froster/blob/main/froster/froster.py#L1426
if not self.cfg.aws_init or not os.path.exists(self.cfg.aws_credentials_file):
return False
self.cfg.aws_init is always false because it was not preconfigured and picking the profile does not set this one to true.
also i see https://github.com/dirkpetersen/froster/blob/main/froster/froster.py#L609 that there is region info in config.ini. This should not be the case. The only info in config.ini should be the AWS profile and if that does not have the correct region info there should be an error or a prompt to fix it in the aws profile not config.ini
Thanks @victormachadoperez . This does now work with 14.1
I am getting this credentials error
but my profile is simple
and is working fine