Skip to content

Files

Latest commit

 

History

History

script-generator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

"Script Generator" Application

In this application, you can generate Script file in Video file.

When you upload video file to S3 bucket, state machine will start processing video to text. The script content is extracted from the video and stored as script.txt in S3.

Learn more about this workflow at Step Functions workflows collection: To be Added...

image

How to Deploy

  1. First, you should install AWS SAM CLI (Serverless Application Model)

  2. Create a new directory, navigate to that directory in a terminal and clone the GitHub repository:

    git clone https://github.com/aws-samples/step-functions-workflows-collection
    
    cd step-functions-workflows-collection/script-generator 
    
  3. From the command line, use AWS SAM to deploy the AWS resources for the workflow as specified in the template.yaml file:

    sam deploy --guided
    

    *You can set the default value by pressing the enter key continuously. Below is example commands.

    Configuring SAM deploy
    ======================
    
        Looking for config file [samconfig.toml] :  Not found
    
        Setting default arguments for 'sam deploy'
        =========================================
        Stack Name [sam-app]: 
        AWS Region [ap-northeast-2]: 
        #Shows you resources changes to be deployed and require a 'Y' to initiate deploy
        Confirm changes before deploy [y/N]: y
        #SAM needs permission to be able to create roles to connect to the resources in your template
        Allow SAM CLI IAM role creation [Y/n]: 
        Save arguments to configuration file [Y/n]: 
        SAM configuration file [samconfig.toml]: 
        SAM configuration environment [default]: 
    
        Looking for resources needed for deployment:
        Creating the required resources...
  4. When all resources are provisioned, Upload your video file to transcript-media bucket in S3.

image

  1. After that, state machine will be deployed. When deployments are done, you can see script.txt file in transcript-results S3 bucket.

image

Cleanup

  1. Delete the stack
    aws cloudformation delete-stack --stack-name STACK_NAME
  2. Confirm the stack has been deleted
    aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Requirements


Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: MIT-0