You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I run a profile, things are handled in inspec resources only.
$ inspec exec https://github.com/chris-rock/aws-baseline -t aws://us-east1
transformed to https://github.com/chris-rock/aws-baseline/archive/master.tar.gz. Consider using the git fetcher
[2018-10-11T16:10:07+02:00] 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.
[2018-10-11T16:10:07+02:00] 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.
unable to sign request without credentials set
Description
Most train backends for cloud (e.g. aws and azure) are not handling authentication issues properly. Users will see a stacktrace of errors if something is going wrong. We intentionally created different error classes in Train to handle this properly. Instead each resource needs to handle connectivity errors at this point. See https://github.com/inspec/inspec/blob/7deed13425c299ded99ff6e4095b1e0db969a826/lib/resources/aws/aws_iam_root_user.rb#L20-L25
Strangely inspec detect returns fine.
But when I run a profile, things are handled in inspec resources only.
This issue is related to inspec/inspec#2881 and https://github.com/inspec/inspec/issues/2976
Train and Platform Version
1.5.1
Replication Case
See above
Possible Solutions
This behaviour should be consistent with ssh, docker and winrm. Train connections could easily raise issues:
The text was updated successfully, but these errors were encountered: