CHAPTER 27Deploying Linux to the Cloud
Virtualization technologies, like the LXD and Docker containers we saw in Chapter 27, “Shifting to Clouds and Containers,” make it possible to leverage generic Linux images to effectively script the deployment of purpose-built servers. Cloud computing platforms provide the environments where you can expose your clean, preconfigured Linux systems to the users who will consume their services.
In this chapter, you’ll learn how to use cloud-init to associate a Linux cloud image with configuration information so that it can be run in a variety of environments. Next, we’ll work through a similar process within Amazon’s Amazon Web Services (AWS) Elastic Compute Cloud (EC2).
Running Linux in the Cloud Using cloud-init
Cloud platforms are great for spinning up new virtual machines quickly and efficiently. They can do so because the full installation process is not required each time you want a new instance of an operating system.
Public clouds, such as Amazon EC2 (www.amazon.com/ec2), let you select instances running different Linux distributions. While provisioning a new workload, you choose a Linux instance, such as Ubuntu, Red Hat Enterprise Linux (RHEL)—or Windows Server, for that matter—that has been specially designed for use on the Amazon cloud. For example, there are instances optimized for high-performance processing ...
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.
Read now
Unlock full access