-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fog::Compute::AWS::Error: AuthFailure #394
Comments
@mgdevstack , we are looking into this. |
@mgdevstack ,
OR
Make sure that |
@Vasu1105 . in knife-ec2-0.8.0 it is working but on upgrading plugin to 0.12.0.. It is showing Fog Error. |
@mgdevstack , we checked with |
@mgdevstack, can you show us all the gems you have installed via Last, can you run To me, what you're seeing is symptomatic of possibly looking at the wrong config file. Some lookups for config may have changed between knife-ec2 versions and hence the error. |
@adamedx I'm getting the same error. It looks like PR #393 will fix my issue.
My ~/.chef/config.rb:# knife-ec2 settings
knife[:region] = 'us-west-2'
knife[:aws_credential_file] = File.join(ENV['HOME'], "/.aws/credentials")
knife[:aws_profile] = 'my-custom-profile' My ~/.aws/credentials:
Stacktrace
|
@dougireton We able to reproduce issue with aws_sessions_token. When we pass this option through configuration file i.e. knife.rb in you case it is ~/.chef/config.rb, the option is not getting set up. We will merge #393. @mgdevstack If you are passing aws_session_token option through credentials file which is required in case of temporary security credentials then the issue you are facing is valid and we will be fixing that after merging #393. But if you are not working with temporary security credentials and using only aws_access_key and aws_secret_access_key the error should not come. And we tried both the cases and confirmed that there is only issue with aws_session_token option if passed through credentials file using knife.rb |
#393 is now merged in master branch |
@dougireton and @mgdevstack Since #393 is merged; can you please close this issue? |
I'm going to close this as it should be fixed in knife-ec2 v0.13.0. Let us know if you still have any problems. |
Correct credential are used in below setting
knife[:aws_access_key_id] = "Your AWS Access Key ID"
knife[:aws_secret_access_key] = "Your AWS Secret Access Key"
or
knife[:aws_credential_file] = "/path/to/credentials/file"
But still Fog authFailure is occuring.
Please suggest some solution or Is there any dependency issue persist related to fog?
The text was updated successfully, but these errors were encountered: