<p>This is definitely possible in Craft PRO -- I just tested with fine results (latest ver. 2.4.2670). So I would look at your IAM policy. If you have your policy statement scoped to the one bucket in question (and not to all buckets in your account), you could use some wildcard permissions for your main actions, like this, and I think you should be able to rename:</p>

<pre><code>"Action": [
    "s3:Delete*",
    "s3:Get*",
    "s3:List*",
    "s3:Put*"
],
</code></pre>

<p>There is no "Update" call into S3 since it is object storage, and any change means a full rewrite of the file.</p>

CC BY-SA 3.0
2015-06-17T18:44:05.187Z
2015-06-18T16:12:23.270Z
2015-06-18T16:12:23.270Z
Neal Magee
<p>I've read somewhere you can't rename files on Amazon S3, which might explain my not being able to rename assets hosted on S3? Or, have P&amp;T found a way around this and I've just not set the right user permissions?</p>

<p>My current permissions for this user are:</p>

<pre><code>        "Action": [
            "s3:ListAllMyBuckets",
            "s3:PutObject",
            "s3:PutObjectAcl",
            "s3:DeleteObject"
        ],
</code></pre>

<p>Thanks,
Clive</p>

CC BY-SA 3.0
2015-04-27T00:35:23.993Z
I believe you can change file names on S3. There is a rename option in the actions dropdown. Are you trying to change the file name in your control panel assets tab?
Aaron Berkowitz
CC BY-SA 3.0
2015-04-27T11:28:16.087Z
Through the Craft backend. Looking at the object policies, I think this might be not be possible: http://docs.aws.amazon.com/AmazonS3/latest/API/SOAPObjectsOps.html
Clive Portman
<assets><s3>
Renaming files on Amazon S3 through Craft backend
# Renaming files on Amazon S3 through Craft backend

(Asked by: username_0 on 2015-04-24)

I've read somewhere you can't rename files on Amazon S3, which might explain my not being able to rename assets hosted on S3? Or, have P&T found a way around this and I've just not set the right user permissions?
My current permissions for this user are:
        "Action": [
            "s3:ListAllMyBuckets",
            "s3:PutObject",
            "s3:PutObjectAcl",
            "s3:DeleteObject"
        ],

Thanks,
Clive

**Tags:** assets, s3
> **Comments:**
> **username_1**: I believe you can change file names on S3. There is a rename option in the actions dropdown. Are you trying to change the file name in your control panel assets tab?  
> **username_0**: Through the Craft backend. Looking at the object policies, I think this might be not be possible: http://docs.aws.amazon.com/AmazonS3/latest/API/SOAPObjectsOps.html  

---

## 1 answers

### Answer by username_2 on 2015-06-17. Score: 3 | Accepted answer

This is definitely possible in Craft PRO -- I just tested with fine results (latest ver. 2.4.2670). So I would look at your IAM policy. If you have your policy statement scoped to the one bucket in question (and not to all buckets in your account), you could use some wildcard permissions for your main actions, like this, and I think you should be able to rename:
"Action": [
    "s3:Delete*",
    "s3:Get*",
    "s3:List*",
    "s3:Put*"
],

There is no "Update" call into S3 since it is object storage, and any change means a full rewrite of the file.


---

