# AWS S3 Output Configuration is not working

**URL:** <https://community.bitmovin.com/t/aws-s3-output-configuration-is-not-working/3136>\
**Category:** Support\
**Tags:** bitmovin-encoding, bitmovin, web\
**Created:** [July 23, 2024, 5:53pm UTC](https://community.bitmovin.com/t/aws-s3-output-configuration-is-not-working/3136 "2024-07-23T17:53:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinayak.baye](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@vinayak.baye](https://community.bitmovin.com/u/vinayak.baye)\
**Post date:** [July 23, 2024, 5:53pm UTC](https://community.bitmovin.com/t/aws-s3-output-configuration-is-not-working/3136/1 "2024-07-23T17:53:09Z")

</div>

### Product

Encoding - VOD

### Question

Somehow, I’m unable to use the S3 Output Configuration, even if I want to. 070acc44-64e6-45cb-b81a-6baaf2c39ef3 is my job ID. I’m seeing the error notice below.

07/23/2024 11:28:52 PM  
Encoding has failed.  
07/23/2024 11:28:39 PM  
Problem with output configuration. Check your AWS S3 or Google GCS bucket configuration and permissions.  
07/23/2024 11:28:39 PM  
Encoding on cluster failed.  
07/23/2024 11:28:36 PM  
Output error.  
07/23/2024 11:28:26 PM  
Encoding in progress.  
07/23/2024 11:28:26 PM  
Per-Title Encoding configuration finished.  
07/23/2024 11:28:22 PM  
Per-Title analysis finished.  
07/23/2024 11:28:22 PM  
Per-Title Encoding configuration started.  
07/23/2024 11:27:46 PM  
Analyzing input finished.  
07/23/2024 11:27:46 PM  
Download of input file finished  
07/23/2024 11:27:46 PM  
Per-Title analysis setup finished.  
07/23/2024 11:27:46 PM  
Per-Title analysis started.  
07/23/2024 11:27:46 PM  
Per-Title analysis setup started.  
07/23/2024 11:27:46 PM  
Analyzing input in progress.  
07/23/2024 11:27:45 PM  
Download of input file in progress.

My Code snippet is as below

private Task CreateAwsInput(string accountname, string accountkey, string bucketname)  
{  
var input = new S3Input()  
{  
BucketName = “restrictedcontent”,  
AccessKey = “AKIAZEZOWXXXXXXXXXXXX”,  
SecretKey = “AvVmO5bjOAhENqF1InFR+XXXXXXXXXXXXXXXXXXXX”,

```
        };
        
        return _bitmovinApi.Encoding.Inputs.S3.CreateAsync(input);
    }

```

private Task CreateAwsOutput(string accountname, string accountkey, string bucketname)  
{

```
        var aclEntry = new AclEntry()
        {
            Permission = AclPermission.PRIVATE
        };
        var output = new S3Output()
        {
            BucketName = "bitmovinasset",
            AccessKey = "AKIAZEZOWXXXXXXXXXXXX",
            SecretKey = "AvVmO5bjOAhENqF1InFR+XXXXXXXXXXXXXXXXXXXX",
            Acl = new List<AclEntry>() { aclEntry },

        };
            
           
        return _bitmovinApi.Encoding.Outputs.S3.CreateAsync(output);
       
    }

```

**Note:- We have given all available permission to S3 buckets.**

One more question is that how can i configure the folder name inside a S3 bucket for S3Output ?

---

<div class="post-metadata">

**Author:** ![albertobitmovin](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/albertobitmovin/32/256_2.png) [@albertobitmovin](https://community.bitmovin.com/u/albertobitmovin)\
**Post date:** [July 26, 2024, 6:18am UTC](https://community.bitmovin.com/t/aws-s3-output-configuration-is-not-working/3136/2 "2024-07-26T06:18:30Z")

</div>

Hi @vinayak.baye,

Having a look at internal logs for the encoding job you’ve shared, this is printed:

`"Error":"saveTranscoderData: Aws::S3::PutObject has failed: Unable to parse ExceptionName: AccessControlListNotSupported Message: The bucket does not allow ACLs`

Note that your code is missing the `setAcl` part outlined here: [How to create an S3 Encoding Input or Output with the Bitmovin API](https://developer.bitmovin.com/encoding/docs/how-to-create-an-s3-encoding-input-or-output-with-the-bitmovin-api#java-s3-output-example) (also see that it’s required on the muxings as well, not just on the output)

Since the issue relates to `PutObject`, I’d also encourage you to review that these permissions are correctly granted on your S3 JSON policy: [What permissions do I need to set on my S3 buckets for Encoding Input and Output?](https://developer.bitmovin.com/encoding/docs/what-permissions-do-i-need-to-set-on-my-s3-buckets-for-encoding-input-and-output#for-output-buckets)

Couple of useful resources you may also want to keep handy:

- [Why are my encodings with S3 outputs failing although the credentials are correct?](https://developer.bitmovin.com/encoding/docs/why-are-my-encodings-with-s3-outputs-failing-although-the-credentials-are-correct)
- [How can I configure an AWS S3 Bucket to test playback of my content?](https://developer.bitmovin.com/encoding/docs/how-can-i-configure-an-aws-s3-bucket-to-test-playback-of-my-content)

PS: Definition of the folder/path within the S3 output bucket is done within each Muxing. For example, when [creating an MP4 muxing](https://developer.bitmovin.com/encoding/reference/postencodingencodingsmuxingsmp4byencodingid), you’ll notice that one of the params to be passed is an array of outputs identified by ID, path and ACL (see screenshot below, taken from the [MP4 muxing creation documentation](https://developer.bitmovin.com/encoding/reference/postencodingencodingsmuxingsmp4byencodingid))

 ![Screenshot 2024-07-26 at 08.11.45](https://us1.discourse-cdn.com/flex015/uploads/bitmovin/original/1X/77c6f2fc1ea4bf36eeedb4a5c0673d961cdef16d.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/bitmovin/original/1X/1ab86334145095b0af9c5b924fa3ae6d920b6482.png) [@system](https://community.bitmovin.com/u/system)\
**Post date:** [August 7, 2024, 7:32am UTC](https://community.bitmovin.com/t/aws-s3-output-configuration-is-not-working/3136/3 "2024-08-07T07:32:51Z")

</div>

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.
