Skip to Content
Learn AWS Serverless Computing
book

Learn AWS Serverless Computing

by Scott Patterson
December 2019
Intermediate to advanced
382 pages
9h 43m
English
Packt Publishing
Content preview from Learn AWS Serverless Computing

Resources and plugins

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: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Amazon EC2, SQS, Kinesis, and S3: A Hands-On Approach to AWS

Practical Amazon EC2, SQS, Kinesis, and S3: A Hands-On Approach to AWS

Sunil Gulabani

Publisher Resources

ISBN: 9781789958355