How will you scale an Amazon EC2 instance vertically?

We can use following steps to scale an Amazon EC2 instance:

  • Step 1: Start an EC2 instance that is larger in capacity than the one we are currently using.
  • Step 2: Pause the new instance and detach the root web volume from the server.
  • Step 3: Stop the current live instance and detach its root volume
  • Step 4: Note the unique device ID and attach that root volume to new server
  • Step 5: Start the new EC2 instance again