Part 2 - Create an S3 bucket and the Lambda Role

Follow the steps to create a S3 bucket on the same region that the lambda function will be created using the AWS Management Console.

1. Sign in to the AWS Management Console and open the S3 service at https://console.aws.amazon.com/s3 use the information from the 8 digit quick code to locate your account, username and password.

2. Please, name your bucket as dotnet-immersionday-lambda-[userid] using the US East (N. Virginia) following the steps described on the To create an S3 bucket at the URL: https://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html

3. To create the Lambda role, open the Access Management Access Service by accessing https://console.aws.amazon.com/iam

4. In the navigation pane of the IAM console, choose Roles, and then choose Create role.

5. For Select type of trusted entity, choose AWS service, select Lambda, and select Next: Permissions.

6. On the filter policies search, type “LambdaBasic” and select the AWSLambdaBasicExecutionRole policy. Also, type “S3Full” at the search field and select the AmazonS3FullAccess policy. Click on Next: Tags button.

7. On the Review page name your role as “LambdaBasicAndS3FullRole”, make sure you seeing the two policies added on the step above and click on the Create Role button.