Skip to content

Instantly share code, notes, and snippets.

@rterbush
Last active September 14, 2015 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rterbush/e3808758ea05ecaaec1d to your computer and use it in GitHub Desktop.
Save rterbush/e3808758ea05ecaaec1d to your computer and use it in GitHub Desktop.
salt-cloud error
```
[ERROR ] EC2 Response Status Code and Error: [401 401 Client Error: Unauthorized] {'Errors': {'Error': {'Message': 'AWS was not able to validate the provided access credentials', 'Code': 'AuthFailure'}}, 'RequestID': '3df22b83-80f4-4de7-8e34-53eb818fc33b'}
```
Response is:
```
[DEBUG ] Using EC2 endpoint: ec2.us-west-2.amazonaws.com
[DEBUG ] EC2 Request: https://ec2.us-west-2.amazonaws.com/
[INFO ] Starting new HTTPS connection (1): ec2.us-west-2.amazonaws.com
[DEBUG ] "GET /?Action=ModifyNetworkInterfaceAttribute&NetworkInterfaceId=eni-71970d17&Attachment.DeleteOnTermination=True&Attachment.AttachmentId=eni-attach-6f56f064&Version=2014-10-01 HTTP/1.1" 401 None
[DEBUG ] EC2 Response Status Code: 401
[ERROR ] EC2 Response Status Code and Error: [401 401 Client Error: Unauthorized] {'Errors': {'Error': {'Message': 'AWS was not able to validate the provided access credentials', 'Code': 'AuthFailure'}}, 'RequestID': '5ac5b0e1-09f2-4f03-9847-7b4936e77861'}
```
@rterbush
Copy link
Author

haproxy-gateway:
  extends: base-ec2-linux
  del_root_vol_on_destroy: True
  keyname: staging-sshkey-proxy.pem.pub
  iam_profile: HAProxyRole
  network_interfaces:
    - DeviceIndex: 0
      PrivateIpAddresses:
        - Primary: True
      AssociatePublicIpAddress: False
      SubnetId: subnet-xxxxx
      SecurityGroupId: sg-xxxxx
  tag: {'Environment': 'staging', 'Role': 'proxy'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment