Book Image

Hands-on Serverless Computing with Go [Video]

By : Matthew Stoodley
Book Image

Hands-on Serverless Computing with Go [Video]

By: Matthew Stoodley

Overview of this book

<p>Our course will help you make your application serverless with Amazon Web Services (AWS). Save time, effort, and cost by removing the need to manage your own servers while still writing your code in Go. You will first be introduced to AWS, then to writing Lambda functions in Go and using them to access the various AWS services.</p> <p>We will first get the Go function working on AWS by using the API-Gateway to call it. Using the AWS Command Line interface, we will build our functions on your local computer and save you having to and manage your Go code. Then we will use the AWS SDK to enable your Lambda Go functions to call into other AWS services such as the S3 Bucket. We will then connect the domain to AWS and add HTTPS/TLS security for your users.</p> <p>Once we have the foundations in place, we will build a secure chat application named Logchat by maintaining sessions, where users must log in before speaking on the chat, introducing the services we need as we go.</p> <p>With a hands-on approach, you will master security considerations in the AWs Suite, and how to maintain your serverless applications.</p> <p>The code bundle for this video course is available at <a href="https://github.com/PacktPublishing/Hands-on-Serverless-computing-with-Go" target="_blank">https://github.com/PacktPublishing/Hands-on-Serverless-computing-with-Go</a>.</p> <h1>Style and Approach</h1> <p>Each section in this course builds incrementally on the last—starting with AWS services, Lambda functions in Go, and then using them to access AWS services.</p> <p>Once we have the foundations in place we will build a secure chat application named Logchat where users must log in before speaking on the chat, introducing the services we need as we go.</p> <p>We will not focus heavily on teaching Go, only on using the libraries that are helpful to AWS Lambda.</p>
Table of Contents (7 chapters)
Chapter 2
Creating and Calling a Go Function
Content Locked
Section 3
API Gateway and Errors
In this video we will learn how to use the API to handle errors in my code. - Create a Lambda that sometimes returns an error - Set up the API to be able to return a 404 error - Attach the Lambda error to the 404