Professional Documents
Culture Documents
Script
Script
problem.
The first part of the code is setting up the provider properties for our terraform
file to be able to use the provided credentials
Afterwards, here is where we are creating the two S3 buckets that we will use: the
source S3 bucket and the destination S3 bucket of our Lambda function's output
Third is where we setup the roles and policies. We also explicitly tell that we are
granting access of the previously created S3 buckets to our lambda function
Next is the lambda function where we use the zip file that was provided and
indicate the runtime to use
Lastly, we connect our source S3 bucket with a trigger to the lambda function so
our lambda function will be watching whenever a new object is created in the S3
bucket.