title: Cant putObject to s3 from ECS container
body: <p>I have setup an ECS task containing two containers. The containers are fully responsive to request, but they need to put some items into s3, but I get <code>Err foundAccessDenied: Access Denied</code>. </p>
  
  <p>I have attached a new policy as following to <code>ecsTaskExecutionRole</code> role.</p>
  
  <pre><code>{
  "Version": "2012-10-17",
  "Statement": [
      {
          "Effect": "Allow",
          "Action": [
              "s3:GetBucketLocation",
              "s3:ListAllMyBuckets",
              "s3:ListBucket"
          ],
          "Resource": "*"
      },
      {
          "Effect": "Allow",
          "Action": [
              "s3:PutObject",
              "s3:GetObject",
              "s3:DeleteObject"
          ],
          "Resource": [
              "*"
          ]
      }
    ]
  }
  </code></pre>
  
  <p>Also added the following env when creating docker images: <code>ECS_ENABLE_TASK_IAM_ROLE=true</code></p>
  
  <p>What am I missing here that all the time get the AccessDenied error?!</p>