Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering Go for DevOps

You're reading from   Mastering Go for DevOps Master building, automating, and scaling cloud infrastructure with Go

Arrow left icon
Product type Paperback
Published in Dec 2025
Publisher Packt
ISBN-13 9781837027330
Length 370 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Engin Polat Engin Polat
Author Profile Icon Engin Polat
Engin Polat
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Part 1: Go Foundations - CLI, Monitoring, and APIs
2. Developing Command-Line Interfaces with Go FREE CHAPTER 3. Packaging and Distributing Go CLIs 4. Integrating Go Applications with Prometheus 5. Writing Go Exporters for Prometheus 6. Building and Consuming RESTful APIs with Go 7. Working with gRPC and Microservices Architecture 8. Part 2: Build Custom Terraform Providers with Go
9. Using Go to Build Custom Terraform Providers 10. Writing Unit Tests and Integration Tests for Terraform Providers 11. Documenting and Publishing Terraform Providers 12. Automating Testing in Pipelines 13. Part 3: Go for Cloud Services
14. Integrating Go Applications with the AWS SDK 15. Integrating Go Applications with the Azure SDK 16. Serverless Computing Using AWS Lambda 17. Serverless Computing Using Azure Functions 18. Unlock Your Exclusive Benefits 19. Other Books You May Enjoy
20. Index

Creating and deploying Lambda functions

Lambda functions only run when needed, which saves money and resources. They scale automatically, so the system can handle just one request or thousands at once.

They are also quick to set up and connect easily with other AWS services. This makes them ideal for building flexible and cost-efficient applications.

Before deploying a Lambda function, the local development environment must be prepared. This involves configuring the Go toolchain, setting up dependencies, and ensuring that the function code can be compiled for AWS’s runtime environment.

The following section explains how to set up the environment step by step to get ready for Lambda development.

Setting up the Go environment

To get started, let’s first initialize the Go module to set up the project environment:

mkdir url-shortener-lambda
cd url-shortener-lambda
go mod init github.com/<yourusername>/url-shortener-lambda

Let’s install...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering Go for DevOps
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon