lib/jets/aws_info.rb in jets-2.1.5 vs lib/jets/aws_info.rb in jets-2.1.6
- old
+ new
@@ -53,10 +53,10 @@
# ensure region set, required for sts.get_caller_identity.account to work
ENV['AWS_REGION'] ||= region
begin
sts.get_caller_identity.account
- rescue Aws::Errors::MissingCredentialsError
+ rescue Aws::Errors::MissingCredentialsError, Aws::Errors::NoSuchEndpointError
puts "INFO: You're missing AWS credentials. Only local services are currently available"
end
end
memoize :account