December 2019
Intermediate to advanced
382 pages
9h 43m
English
Resources are any infrastructure that may support the functionality we are building with our function. For AWS, CloudFormation template syntax is used to define the resources. An example of this could be an Amazon DynamoDB table to provide a data persistence layer. We can specify the details of the AWS resource configuration in our serverless.yml file, and the framework will provision the infrastructure automatically when we deploy it. The following is an example of including a DynamoDB table called photosMetadata in the resources section of our serverless.yml file:
resources: Resources: photosMetadata Type: AWS::DynamoDB::Table Properties: TableName: photosMetadata AttributeDefinitions: - AttributeName: id AttributeType: ...