Skip to content

antstackio/lambda-response-streaming-demo

Repository files navigation

Lambda Response Streaming Demo

How to:

  1. Setup Repository secrets in github repo.
    - Repository Settings --> Secrets and variables
    - Use these keys to setup repository secrets AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY

  2. You need to add openapi secrets in AWS secrete manager service: - CHAT_GPT as secret name. - chat gpt api key as API_KEY secret. - chat gpt org id as ORG_ID secret.

  3. Edit samconfig.toml file.
    - change stack_name, s3_bucket_for_artifacts, s3_prefix.
    - stack_name is being used as cloudformation stack name.
    - s3_bucket_for_artifacts is being used to create S3 bucket to store artifacts when sam builds.
    - change parameter_overrides as well for all three sub-parameters.

  4. If the S3 Bucket for Artifacts is already present in AWS, then it will skip the creation for artifacts s3 bucket
    and continue with the remaining steps in the github action.

  5. Else if, there is no S3 bucket present in AWS, then it will create the artifact s3 bucket
    but it will skip all the remaining steps in github action.

  6. Just Re-Run the job, if you encounter step 4.

  7. You can use sourceData.xlsx file for source data in your dynamodb to get the results on the webpage.

Deployed Link:

  • You can find the deployed project cloudfront link / webpage link in your github actions tab.
  • Or you can check your cloudformation console --> Outputs tab to get cloudfront link / webpage link.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published