• Document Up to Date

AWS Profiles Configuration

The AWS Profiles configuration file allows you to configure 0 or more AWS profiles with the information required by AWS services. To modify the AWS Profiles configuration, click on siteConfig from the bottom of the Sidebar, then click on Configuration and select AWS Profiles from the dropdown list.

Configurations - Open AWS Profiles Configuration

Sample

CRAFTER_HOME/data/repos/sites/SITENAME/sandbox/config/studio/aws/aws.xml
  1<?xml version="1.0" encoding="UTF-8"?>
  2
  3<!--
  4  AWS profiles configuration file. This files configures 0 or more
  5  AWS profiles with the information required by AWS services.
  6
  7  For every profile you need to specify at least:
  8  <profile>
  9    <id/>
 10    <credentials>
 11      <accessKey/>
 12      <secretKey/>
 13    </credentials>
 14    <region/>
 15  </profile>
 16
 17  id: a unique id for this profile, this will be referenced in the
 18      control defined in the content type
 19  accessKey: AWS access key
 20  secretKey: AWS secret key
 21  region: AWS region for the service
 22
 23   Every service can require additional properties.
 24-->
 25<aws>
 26  <s3>
 27    <!--
 28
 29    AWS S3 Profile
 30
 31    Additional properties:
 32
 33    <bucketName/>
 34    <pathStyleAccess/>
 35
 36    bucketName: name of the bucket where files will be uploaded
 37    pathStyleAccess: indicates if path style access should be used for all requests (defaults to false)
 38
 39    -->
 40    <profile>
 41      <id>s3-default</id>
 42      <credentials>
 43        <accessKey>xxxxxxxxx</accessKey>
 44        <secretKey>xxxxxxxxx</secretKey>
 45      </credentials>
 46      <region>us-west-1</region>
 47      <bucketName>sample-input-bucket</bucketName>
 48      <pathStyleAccess>true</pathStyleAccess>
 49    </profile>
 50  </s3>
 51
 52  <elasticTranscoder>
 53    <!--
 54
 55    AWS Elastic Transcoder Profile
 56
 57    Additional properties:
 58
 59    <pipelineId/>
 60      <outputs>
 61        <output>
 62          <presetId/>
 63          <outputKeySuffix/>
 64        </output>
 65
 66        ...
 67
 68      </outputs>
 69
 70    pipelineId: id of the pipeline that will be used for transcoding jobs
 71    outputs: list of outputs for the transcoding jobs
 72    presetId: id of the preset for a particular output, can use AWS default presets for common formats
 73    outputKeySuffix: suffix added to a particular output
 74
 75    -->
 76    <profile>
 77      <id>elastic-transcoder-default</id>
 78      <credentials>
 79        <accessKey>xxxxxxxxx</accessKey>
 80        <secretKey>xxxxxxxxx</secretKey>
 81      </credentials>
 82      <region>us-east-1</region>
 83      <pipelineId>xxxxxxxx</pipelineId>
 84      <outputs>
 85        <output>
 86          <presetId>xxxxxxxxxx</presetId>
 87          <outputKeySuffix>-small.mp4</outputKeySuffix>
 88        </output>
 89        <output>
 90          <presetId>xxxxxxxxxxx</presetId>
 91          <outputKeySuffix>-medium.mp4</outputKeySuffix>
 92        </output>
 93        <output>
 94          <presetId>xxxxxxxxxxxx</presetId>
 95          <outputKeySuffix>-large.mp4</outputKeySuffix>
 96        </output>
 97      </outputs>
 98    </profile>
 99  </elasticTranscoder>
100
101  <mediaConvert>
102    <!--
103
104    AWS MediaConvert Profile
105
106    Additional properties:
107
108    <endpoint/>
109    <role/>
110    <queue/>
111    <inputPath/>
112    <template/>
113
114    endpoint: URL specific for the account, can be found in the AWS MediaConvert dashboard
115    role: ARN of the role used to create transcoding jobs
116    queue: ARN of the queue used to create transcoding jobs
117    inputPath: Name of the S3 bucket and optional path to upload files
118    template: Name of the Job Template used to create transcoding jobs
119
120    -->
121    <profile>
122      <id>mediaconvert-default</id>
123      <credentials>
124        <accessKey>xxxxxxxxx</accessKey>
125        <secretKey>xxxxxxxxx</secretKey>
126      </credentials>
127      <region>us-west-1</region>
128      <endpoint>https://XXXXXXXX.mediaconvert.us-east-1.amazonaws.com</endpoint>
129      <role>arn:aws:iam::XXXXXXXXXXXX:role/...</role>
130      <queue>arn:aws:mediaconvert:us-east-1:XXXXXXXXXXXX:queues/...</queue>
131      <inputPath>example-bucket/folder/videos</inputPath>
132      <template>Example Template</template>
133    </profile>
134  </mediaConvert>
135</aws>

For more information on Amazon S3, please see: https://docs.aws.amazon.com/AmazonS3/latest/dev/Introduction.html

For more information on the AWS elastic transcoder, please see: https://docs.aws.amazon.com/elastictranscoder/latest/developerguide/introduction.html

For more information on the AWS mediaconvert, please see: https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html