If we face hardware limitations of our EC2 instance, we can not just increase Memory/CPU cores as in VMWare, instead, we must change instance type. It is set of predefined images with different hardware specifications.
First, stop EC2 instance:
Seclect instance>>Actions>>Insatnce State>>Stop
First, stop EC2 instance:
Seclect instance>>Actions>>Insatnce State>>Stop
Then, from Actions>>Instance Settings>>Change Instance Type
Select instance type from drop-down menu and click Apply
Now start the instance. and check changes.