Hugo's Portfolio

AWS Educate 101

December 20, 2023 (11mo ago)

☁️ AWS Educate Workshop at 2023-12-15

Online Anonymous Multi-User Message Board
Online Anonymous Multi-User Message Board

Create line-bot-sdk Layer 1

1$ mkdir python 2$ cd python 3$ pip install --target . line-bot-sdk 4$ cd .. 5$ zip -r line-bot-sdk.zip ./python 6$ rm -rf ./python 7 8# or our custom script 9$ ./build_line_bot_sdk_layer.sh

Add Permission with s3 2

1{ 2 "Version": "2012-10-17", 3 "Statement": [ 4 { 5 "Sid": "PublicReadGetObject", 6 "Effect": "Allow", 7 "Principal": "*", 8 "Action": [ 9 "s3:GetObject" 10 ], 11 "Resource": [ 12 "arn:aws:s3:::your_bucket_name/*" 13 ] 14 } 15 ] 16}

CONTACT INFO.

Hugo ChunHo Lin, AWS Educate Cloud Ambassador, Technical Support

Richard, AWS Educate Cloud Ambassador, Technical Support

License

Released under MIT by AWS Educate TW, 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. Policies and Permissions in Amazon S3