我有一个在 lambda 实例中运行的弹性转码器作业。该实例是python并使用boto3。
当 lambda 运行时,我收到以下错误:
[ERROR] EndpointConnectionError: Could not connect to the endpoint URL: "https://elastictranscoder.us-east-2.amazonaws.com/2012-09-25/jobs"
通过 boto3 的 elastictranscoder 工作如下:
client = boto3.client('elastictranscoder', region_name='us-east-2')
client.create_job(
PipelineId='kirke-audio',
Input={
"Key": rawbucketkey,
},
Output={
"Key": rawbucketkey + '.mp3',
"PresetId": "1351620000001-300030"
},
UserMetadata={
"content-type": contentype,
"userid": userid,
"contentpostid": contentpostid,
"rawbucketkey": rawbucketkey
}
我一直在寻找,但我不知道为什么会这样。
Lambda 函数具有完整的 aws elastictranscoder IAM 权限