amazon web services - EC2ResponseError: 401 Unauthorized using Saltstack boto_vpc module -
i'm trying create vpc using saltstack , boto_vpc module. state:
vpc_create: module.run: - name: boto_vpc.create - cidr_block: '10.0.0.0/24' - vpc_name: 'myvpc' - region: 'us-east-1' - key: 'adjjdnejfjgnfkfkfkiw' - keyid: 'sjdjnfnejuwlllclclennrbflgslslkemfuhe'
the keys i'm using correct got error:
[info ] running state [boto_vpc.create] @ time 14:25:35.839797 [info ] executing state module.run boto_vpc.create [error ] ec2responseerror: 401 unauthorized <?xml version="1.0" encoding="utf-8"?> <response><errors><error><code>authfailure</code><message>aws not able validate provided access credentials</message></error></errors><requestid>7cb74939-afda-4722-a31e-2855c5cbe16b</requestid></response> [error ] {'ret': false} [info ] completed state [boto_vpc.create] @ time 14:25:35.882840 [debug ] file /var/cache/salt/minion/accumulator/49944656 not exist, no need cleanup. [debug ] lazyloaded highstate.output [debug ] lazyloaded nested.output local: ---------- id: vpc_create function: module.run name: boto_vpc.create result: false comment: module function boto_vpc.create executed started: 14:25:35.839797 duration: 43.043 ms changes: ---------- ret: false
saltstack version:
salt: 2015.5.0 python: 2.6.9 (unknown, apr 1 2015, 18:16:00) jinja2: 2.7.2 m2crypto: 0.21.1 msgpack-python: 0.4.6 msgpack-pure: not installed pycrypto: 2.6.1 libnacl: not installed pyyaml: 3.10 ioflo: not installed pyzmq: 14.3.1 raet: not installed zmq: 3.2.5 mako: not installed
i tried aws ec2 create-vpc --cidr-block 10.0.0.0/16
, works fine!
from reading salt reference, looks keyid represents access key , key represents secret key. have accidentally transposed them?
Comments
Post a Comment