Skip to content

I want to change the instance type "windows with sql server" to "windows standard" for my EC2

0

i has a EC2 running type m6i.2xlarge Windows (include SQL Server) and i want to change type m6i.2xlarge Windows (without SQL Server). I tried user AMI tool but not work. Can you help me.

asked 2 years ago655 views

1 Answer
1
Accepted Answer

Hello.

To change your EC2 instance type from "Windows with SQL Server" to "Windows Standard" without SQL Server, follow these steps bellow.

1. Create a Backup (AMI) of Your Existing Instance

  • In the AWS Management Console, go to EC2 > Instances.
  • Select your current EC2 instance (m6i.2xlarge with SQL Server).
  • Choose Actions > Image and templates > Create image to create an AMI as a backup.

2. Launch a New EC2 Instance with Windows Standard

  • Navigate to EC2 > Instances > Launch instances.
  • Choose Microsoft Windows Server (without SQL Server) from the available options.
  • Select the same instance type, m6i.2xlarge.
  • Use the same settings (VPC, subnet, security groups) as your current instance.

3. Detach and Attach EBS Volumes

  • After launching the new Windows instance, stop both the current and new instances.
  • In the EC2 console, go to Volumes and locate the EBS root volume of your current instance.
  • Detach this volume and then attach it to the new instance (make sure it's attached as the root volume, /dev/sda1).

4. Verify and Restart

  • Start the new instance.
  • Check that the new instance boots correctly and all your data and applications are intact (minus the SQL Server).

5. Terminate the Old Instance

  • Once you've confirmed the new instance is functioning correctly, you can terminate the old instance with SQL Server to avoid additional costs.

https://repost.aws/knowledge-center/ec2-windows-launch-sql-server

https://docs.aws.amazon.com/sql-server-ec2/latest/userguide/setting-up.html

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

  • Thank bro, it's helpful in my case.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.