Skip to content

Daily workflow tracker with the LINE BOT, AWS Lambda, s3, API Gateway, openai, Langchain

License

Notifications You must be signed in to change notification settings

1chooo/jarvis-linebot

Repository files navigation

1chooo's Jarvis

Create Lambda Function Layer

Create line-bot-sdk Layer 1

$ mkdir python
$ cd python
$ pip install --target . line-bot-sdk 
$ cd ..
$ zip -r line-bot-sdk.zip ./python
$ rm -rf ./python

Create openai Layer 1

$ mkdir python
$ cd python
$ pip install --target . openai 
$ cd ..
$ zip -r openai.zip ./python
$ rm -rf ./python
$ echo "Created openai.zip"

Create openai Layer 1

$ mkdir python
$ cd python
$ pip install --target . openai 
$ cd ..
$ zip -r openai.zip ./python
$ rm -rf ./python
$ echo "Created openai.zip"

or With shell script

$ chmod +x ./build_layer.sh
$ ./build_layer.sh

Add Permission with s3 2

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PublicReadGetObject",
            "Effect": "Allow",
            "Principal": "*",
            "Action": [
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::your_bucket_name/*"
            ]
        }
    ]
}

CONTACT INFO.

AWS Educate Cloud Ambassador, Technical Support
Hugo ChunHo Lin

📩 E-mail: hugo970217@gmail.com
🧳 Linkedin: Hugo ChunHo Lin
👨🏻‍💻 GitHub: 1chooo

License

Released under MIT by Hugo ChunHo Lin.

This software can be modified and reused without restriction. The original license must be included with any copies of this software. If a significant portion of the source code is used, please provide a link back to this repository.

Footnotes

  1. 使用 .zip 封存檔部署 Python Lambda 函數 2 3

  2. Policies and Permissions in Amazon S3

About

Daily workflow tracker with the LINE BOT, AWS Lambda, s3, API Gateway, openai, Langchain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published