O'Reilly logo

Hands-On Serverless Deep Learning with TensorFlow and AWS Lambda by Rustem Feyzkhanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the model

Here, we will need to deploy the serverless framework and then we can check the trance using the CLI:

  1. Let's look at the configuration file. You can see all the main parts and roles that we need to define to access the model:
provider:  name: aws  region: us-east-1  runtime: python3.6  memorySize: 1536  timeout: 30  iamRoleStatements:    - Effect: "Allow"       Action:         - "s3:ListBucket"       Resource:         - arn:aws:s3:::serverlessdeeplearning    - Effect: "Allow"       Action:         - "s3:GetObject"       Resource:         - arn:aws:s3:::serverlessdeeplearning/*
  1. Here are the functions, which we will use in different states of the step function:
functions:  main:    handler: index.handler  map:    handler: index.map  reduce:    handler: index.reduce
  1. map will enable the mapping of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required