The Pulumi Book
$19.99
Minimum price
$29.99
Suggested price

The Pulumi Book

A developer's guide to programming the cloud with TypeScript and Amazon Web Services

About the Book

☝️ CascadiaJS 2019 the talk that inspired the book!

About the Book

Pulumi is an open-source command-line tool and software-development kit (SDK) that helps you build, deploy, and manage cloud applications and infrastructure with modern programming languages like TypeScript, C#, Python, and Go. With Pulumi, you can build just about anything that can be built with the cloud today, from simple static websites and serverless applications to vast constellations of distributed microservices, all managed with code, using the languages and tools that you use every day.

In The Pulumi Book, you'll learn Pulumi from the ground up by writing several different kinds of applications in TypeScript and deploying them into the Amazon Web Services (AWS) cloud. Among the many topics we'll cover are:

  • Infrastructure as code: what it is, why how it works, and why you should care
  • The components of the Pulumi platform — the CLI, the Node.js SDK, and the state-management service and console — and and how to use them effectively
  • Designing and developing various kinds of applications, like static websites, serverless applications, container-based microservices, and more, using cloud-native patterns and architectures and the full breadth of the AWS platform
  • Building hybrid applications that blend application and infrastructure code, and that take full advantage of the modern JavaScript ecosystem
  • Provisioning and managing cloud-native SQL and NoSQL databases, managing DNS, securing web applications and APIs with SSL/TLS, and rolling your own authentication and authorization, all with JavaScript
  • Combining Pulumi with GitHub Actions to deploy into multiple environments using fully-automated, Git-driven CI/CD workflows
  • Writing programs that drive Pulumi itself — for example, from within an Express or Electron application
  • Using Pulumi for your own projects, in teams, and across organizations
  • And lots more!

Written for full-stack developers who may be new to the cloud and to infrastructure as code, The Pulumi Book is a hands-on guide that will show you how to use the cloud more fully and effectively, using the skills you already have and the tools of your everyday workflow. By the end of the book, you'll not only be comfortable using Pulumi to manage your own applications and infrastructure, but you'll have made the leap to thinking of infrastructure not just as code, but as software, and of the cloud as a powerful new tool in your ever-expanding toolbox.

  • Share this book

  • Feedback

    You must own a copy of this Book to access the forums.

    Email the Author(s)

About the Author

Christian Nunciato
Christian Nunciato

Christian Nunciato is a full-stack developer and staff software engineer at Pulumi. Before joining the Pulumi team, he was a principal engineer at Chef, where he helped create Chef's open-source application automation platform, Habitat. He lives in the Pacific Northwest and blogs infrequently at https://chris.nunciato.org. You'll find him on Twitter at @cnunciato.

Table of Contents

  • Welcome!
  • Part 1: Foundations
  • Chapter 1: Introducing Pulumi
    • Infrastructure: it’s complicated
    • What is infrastructure as code?
    • What is Pulumi?
    • Why should I use Pulumi?
    • Summary
  • Chapter 2: Your first Pulumi program
    • Building a serverless cloud notifier
    • Creating the project and stack
    • Understanding the new project layout
    • Writing the code
    • Deploying the application
    • Updating the stack
    • Browsing the stack
    • Tidying up
    • Summary
  • Chapter 3: Projects and stacks
    • Monitoring a website’s uptime serverlessly
    • Creating the project and stack
    • Thinking in projects and stacks
    • Developing the application
    • Taking stock
    • Making the program configurable
    • Adding a production stack
    • Stepping back, and looking ahead
    • Tidying up
    • Summary
  • Chapter 4: Configuration and secrets
    • A quick recap
    • Introducing Pulumi config
    • Configuring with more than just strings
    • Introducing Pulumi secrets
    • Keeping secrets secret
    • Configuring with AWS environment variables
    • Updating and deploying the production stack
    • Tidying Up
    • Summary
  • Appendix A: Setting Things Up
  • Notes

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Do Well. Do Good.

Authors have earned$10,607,028writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF, EPUB and/or MOBI files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub