lib/resources/aws/aws_ec2_instance.rb in inspec-4.23.4 vs lib/resources/aws/aws_ec2_instance.rb in inspec-4.23.10

- old
+ new

@@ -33,10 +33,10 @@ def catch_aws_errors yield rescue Aws::Errors::MissingCredentialsError # The AWS error here is unhelpful: # "unable to sign request without credentials set" - Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details." + Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details." fail_resource("No AWS credentials available") rescue Aws::Errors::ServiceError => e fail_resource e.message end