From the course: Introduction to AWS AI Services for Developers
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
CodeGuru Profiler with Python - Amazon Web Services (AWS) Tutorial
From the course: Introduction to AWS AI Services for Developers
CodeGuru Profiler with Python
To make this example code from AWS work, we first need to set up some of the assets that the Lambda function will access. From within the AWS dashboard in the service search bar, switch over to S3. Click on "Create bucket." For bucket name, type, 'profiler-demo-' and then add a unique value since all of our buckets need to be different. I'll type halvantainstructor with some random numbers. At the bottom, click on "Create bucket." Switch over to the IAM dashboard. Click on "Roles" and then click the "Create role" button. Select AWS service and under the service pull down, select Lambda. Then click the "Next" button. In the search bar, search for AWSLambdabasicexecutionrole with no spaces. Select it and click "Next." For roll name, type, 'profiler-demo-' and then put in the same unique value you used earlier for the bucket name, and then end it with -role. At the bottom, click the "Create role" button. Scroll up and click on the role that we just created. Under the Add Permissions…