javascriptnode.jsamazon-web-servicesamazon-ec2upgrade

How to upgrade AWS EC2 instance type t2.medium to t3.medium?


I want to upgrade intance type T2.Medium to T3.Medium and follow the these steps.

But it's given me this type of error message -

**Failed to start the instance --instance-id--
Enhanced networking with the Elastic Network Adapter (ENA) is required for the 't3.medium' instance type. Ensure that your instance '--instance-id--' is enabled for ENA.**
**Failed to start the instance --instance-id--
Enhanced networking with the Elastic Network Adapter (ENA) is required for the 't3.medium' instance type. Ensure that your instance '--instance-id--' is enabled for ENA.**

How to fix this issue without losing any data?


Solution

  • Apparently when you switched the instance type, it disabled ENA, probably because you can't manage ENA from the console. You'll need to use the 'aws' command to enable ENA on the instance via:

    aws ec2 modify-instance-attribute --instance-id <ID> --ena-support
    

    Of course replace <ID> with your instance's ID.

    If you don't have the aws command installed on any of your EC2 instances, it should be installed on the CloudShell that you can access from the console.