I am using boto3 with my flask application to upload file in a s3 bucket with server side encryption customer provided key. I tried start_transcription_job from encrypted s3 file but i have an exception
s3_client.upload_file(filename, BUCKET, s3filename, ExtraArgs={'SSECustomerKey': KEY, 'SSECustomerAlgorithm': 'AES256' })
transcribe_obj.start_transcription_job(
TranscriptionJobName=job_name,
Media={'MediaFileUri': s3uri},
MediaFormat=file_extension,
LanguageCode='en-US'
)
Exception:
botocore.errorfactory.BadRequestException: An error occurred (BadRequestException) when calling the StartTranscriptionJob operation: The S3 URI that you provided can't be accessed. Make sure your URI is valid and try your request again.