예제 #1
0
 //--- Methods ---
 public override async Task InitializeAsync(LambdaConfig config)
 {
     _transcribe = new AmazonTranscribeServiceClient();
     _table      = new IndexingStatusTable(
         config.ReadDynamoDBTableName("IndexingStatusTable"),
         new AmazonDynamoDBClient()
         );
 }
예제 #2
0
        //--- Methods ---
        public override async Task InitializeAsync(LambdaConfig config)
        {
            _s3Client = new AmazonS3Client();
            _destinationBucketName = config.ReadS3BucketName("ExtractedAudioBucket");
            _table = new IndexingStatusTable(
                config.ReadDynamoDBTableName("IndexingStatusTable"),
                new AmazonDynamoDBClient()
                );

            // show contents of /opt folder; the 'ffmpeg' file must have execution permissions to be invocable
            LogInfo(Exec("/bin/bash", "-c \"ls -al /opt\"").Output);
        }