title: aws-ec2 - you are not authorized to perform this operation
body: <p>I am least familiar with aws etc. What am trying to do is upload a small war file to s3 bucket <a href="https://github.com/cosmin/s3-bash/" rel="nofollow">using s3-bash</a> and <strong>PalletOps</strong> at the moment. For that, I have a clojure config file configured as </p>
  
  <pre class="lang-clj prettyprint-override"><code>(defpallet :default-service
             :vmfest
             :services {:localhost {:provider "localhost"}
                        :vmfest {:provider                "vmfest"
                                 :vbox-comm               :ws
                                 :default-network-type    :local
                                 :default-memory-size     1024
                                 :default-local-interface "vboxnet5"}
                        :aws-ec2 {:provider   "aws-ec2"
                                  :identity   "AAAAAAAAAAAAAAAAAAQ"
                                  :credential "ATMz1/gerGGFHDh/GFGGFGFGFHFHFHGTUUTUgdgdgdg"}})
  </code></pre>
  
  <p>On aws, I added IAM policy to that user, </p>
  
  <pre class="lang-json prettyprint-override"><code>{
    "Version": "2012-10-17",
    "Statement": [
      {
        "Effect": "Allow",
        "Action": "iam:*",
        "Resource": "*"
      }
    ]
  }
  </code></pre>
  
  <p>While trying to <code>lein pallet up -P aws-ec2</code> the cluster with above <strong>config</strong> I get following error, </p>
  
  <pre class="lang-none prettyprint-override"><code>Caused by: org.jclouds.aws.AWSResponseException: request POST
    https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with code 403,
          error: AWSError{requestId='c20a65f1-64a1-4d7f-be27-690d495ffd09',
          requestToken='null', code='UnauthorizedOperation', message='You are not
          authorized to perform this operation.', context='{Response=, Errors=}'}
      at org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:77)
      ... 77 more
  Subprocess failed
  </code></pre>
  
  <p>I tried simulation at <a href="https://policysim.aws.amazon.com/home/index.jsp?#" rel="nofollow">https://policysim.aws.amazon.com/home/index.jsp?#</a> as well, but failing even for an action "ListBucket" with error <code>Implicitly denied (no matching statements found).</code>.</p>
  
  <p>I may be <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html" rel="nofollow">missing to configure on aws ec2</a> but couldn't move further.</p>