Kodekloud - 100 Days of cloud (AWS) Day 46: Event-Driven Processing with Amazon S3 and Lambda
Step 1: Login into the AWS environment using provided credentials.
Step 2: Go to S3, Name bucket and create public bucket.
Step 3: Go to S3, Name bucket and create private bucket.
Step 4: Open public bucket go to permissions and edit block access.
- Edit the Bucket policy.
Step 5: Go to IAM and create a role for Lambda.
- Select the service.
- Choose these 3 policy.
- Name the Role and create.
Step 6: Go to Lambda and create function.
- Name the function, choose the runtime and select the create lambda role.
Step 7: Copy the code from Lambda_function.py and paste it to created function.
Paste your code here.
Step 8: Change following things in the code.
REPLACE-WITH-YOUR-DYNAMODB-TABLE = datacenter-S3CopyLogs
REPLACE-WITH-YOUR-PRIVATE-BUCKET = datacenter-private-4772
Step 9: Go to DynamoDB, Name it, provide partition key and click create.
Step 10: Go to create Lambda and click add trigger and select S3 public bucket and add.
Step 11: Finally copy the sample.zip file to s3 bucket
Step 12: Check if exist in public bucket.
- private bucket.
