If ~/aws.credentials are not present you can't validate your template. This is not a good approach, because:
You might want to run perun on ec2 with instance profile when credentials are passed in a different way. Maybe perun should behave like aws-cli and look for credentials in many locations e.g. from environment variables etc.
You may want to just check if template is valid using offline validation, in that case just perform offline validation and inform user that perun was not able to find credentials to make call to aws for
online validation.
If
~/aws.credentials
are not present you can't validate your template. This is not a good approach, because:You might want to run perun on ec2 with instance profile when credentials are passed in a different way. Maybe perun should behave like aws-cli and look for credentials in many locations e.g. from environment variables etc.
You may want to just check if template is valid using offline validation, in that case just perform offline validation and inform user that perun was not able to find credentials to make call to aws for online validation.