Member-only story

AWS Increase EC2 Root Block Device

Expanding Your AWS EC2 Instance Storage for Enhanced Performance

Luca Berton
5 min readFeb 24, 2024

Introduction

In today’s rapidly evolving tech landscape, the demand for more computing resources is a constant. Particularly in cloud environments like Amazon Web Services (AWS), the ability to scale resources flexibly is crucial. One common requirement is increasing the storage capacity of the root block device on an Elastic Compute Cloud (EC2) instance. This necessity often arises when deploying applications that require significant disk space, such as Docker containers.

The aws_instance resource in Terraform’s instances.tf file provides a straightforward way to manage EC2 instances, including the configuration of their root block devices. By adjusting the volume_size attribute of the root_block_device block, users can specify the desired disk space for their instance’s root volume. Here’s a closer look at how to effectively increase the size of the root block device to accommodate resource-intensive applications.

Prerequisites

  • An AWS account and AWS CLI installed and configured
  • Terraform installed on your local machine

Configuration Steps

  1. Identify Your Requirements…

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet