Bobcares

WeSupport

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.98 minutes in June 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

Resize EC2 Windows instance – How to do it

by | Jul 14, 2021

Wondering how to resize EC2 Windows instance? We can help you.

Here, at Bobcares, we assist our customers with several AWS queries as part of our AWS Support Services.

Today, let us see how our Support Techs resize EC2.

 

How to resize EC2 Windows instance?

Following are some of the requirements in order to resize the instance:

  • You must select an instance type that is compatible with the configuration of the instance. If the instance type that you want is not compatible with the instance configuration you have, then you must migrate your application to a new instance with the instance type that you need.
  • To change the instance type, the instance must be in the stopped state.
  • You cannot resize an instance if hibernation is enabled.

Today, let us see the procedure followed by our Support Techs to resize the instance.

Compatibility for resizing instances

You can resize an instance only if its current instance type and the new instance type that you want are compatible in the following ways:

  • Architecture: AMIs are specific to the architecture of the processor, so you must select an instance type with the same processor architecture as the current instance type.
  • Network: Newer instance types must launch in a VPC. Therefore, you can’t resize an instance in the EC2-Classic platform to a instance type that is available only in a VPC unless you have a nondefault VPC.
  • Network adapters: If you switch from a driver for one network adapter to another, the network adapter settings are reset when the operating system creates the new adapter. To reconfigure the settings, you might need access to a local account with administrator permissions.
  • Enhanced networking: Instance types that support enhanced networking require the necessary drivers installed.
  • NVMe: EBS volumes are exposed as NVMe block devices on instances built on the Nitro System. If you resize an instance from an instance type that does not support NVMe to an instance type that supports NVMe, you must first install the NVMe drivers on your instance.

 

To resize an Amazon EBS–backed instance

  • If the new instance type requires drivers that are not installed on the existing instance, you must connect to your instance and install the drivers first.
  • If you configured your Windows instance to use static IP addressing and you resize the instance from a type that doesn’t support enhanced networking to an instance type that does support enhance networking.

You might get a warning about a potential IP address conflict when you reconfigure static IP addressing.

To prevent this, enable DHCP on the network interface for your instance before you change the instance type.

From your instance, open the Network and Sharing Center, go to Internet Protocol Version 4 (TCP/IPv4) Properties for the network interface, and choose Obtain an IP address automatically.

Change the instance type and reconfigure static IP addressing on the network interface.

  • Then, open the Amazon EC2 console.
  • Then, connect to your Windows instance and run the following EC2Launch PowerShell script to configure the instance after it is resize.
PS C:\> C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1 -Schedule
  • In the navigation pane, choose Instances.
  • Select the instance and choose Actions, Instance state, Stop instance.
  • In the confirmation dialog box, choose Stop. It can take a few minutes for the instance to stop.
  • With the instance still selected, choose Actions, Instance settings, Change instance type.

This action is grayed out if the instance state is not stopped.

  • In the Change instance type dialog box, do the following:

1.From Instance type, select the instance type that you want.

2.Then, if the instance type that you select supports EBS–optimization.

Select EBS-optimized to enable EBS–optimization or deselect EBS-optimized to disable EBS–optimization.

3. Choose Apply to accept the new settings.

  • To restart the stopped instance, select the instance and choose Instance state, Start instance.

It can take a few minutes for the instance to enter the running state.

 

To migrate your application to a compatible instance

1.Back up any data on your instance store volumes that you need to keep to persistent storage.

To migrate data on your EBS volumes that you need to keep, create a snapshot of the volumes or detach the volume from the instance so that you can attach it to the new instance later.

2.Launch a new instance, selecting the following:

  • If you are using an Elastic IP address, select the VPC that the original instance is currently running in.
  • Any EBS volumes that you detached from the original instance and want to attach to the new instance, or new EBS volumes based on the snapshots that you created.
  • If you want to allow the same traffic to reach the new instance, select the security group that is associate with the original instance.

3.Install your application and any required software on the instance.

4.Restore any data that you backed up from the instance store volumes of the original instance.

5.If you are using an Elastic IP address, assign it to the newly launched instance as follows:

  • In the navigation pane, choose Elastic IPs.
  • Select the Elastic IP address that is associated with the original instance and choose Actions, Disassociate Elastic IP address. When
  • prompted for confirmation, choose Disassociate.
  • With the Elastic IP address still selected, choose Actions, Associate Elastic IP address.
  • For Resource type, choose Instance.
  • For Instance, choose the instance with which to associate the Elastic IP address.
  • Then for Private IP address, specify a private IP address with which to associate the Elastic IP address.
  • Choose Associate.

6.You can terminate the original instance if it’s no longer needed.

Select the instance and verify that you are about to terminate the original instance, not the new instance.

Choose Instance state, Terminate instance.

[Need help with the EC2 query? We’d be happy to help]

 

Conclusion

In short, today we saw how our Support Techs resize EC2 Windows instance

 

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

AWS Support

Use your time to build great apps. Leave your servers to us.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management to us, and use that time to focus on the growth and success of your business.

TALK TO USOr click here to learn more.
AWS Support

Use your time to build great apps. Leave your servers to us.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management to us, and use that time to focus on the growth and success of your business.

TALK TO USOr click here to learn more.

Categories:

Tags:

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF