i want to launch a instance with user data but not able to do

0

Hi everyone,

I am trying to launch a Ec2 to host a sample web app over so i added the code in user data before launching but when i trying to launch it is throwing me some error which i am not getting how to manage, attaching the sample error image

Regards, Abhi.bEnter image description here

已提问 1 年前287 查看次数
2 回答
1

The error message is specific in stating that the t2.micro instance cannot be requested in AZ ap-south-1c. You need to launch the instance in either of ap-south-1a or ap-south-1b or change the instance type to a supported one in ap-south-1c

When launching EC2 instance, if you don't make any changes to Network Settings the default for Subnet is "No preference (Default subnet in any availability zone)". Since AWS is trying to launch one in ap-south-1c, you need to override that auto assignment. You can edit that Subnet preference by editing the Network settings.

--Syd

profile picture
Syd
已回答 1 年前
profile pictureAWS
专家
kentrad
已审核 1 年前
0

Your user data looks fine and as per error you dont have t2.micro availability within the ap-south-1c , either you go for other az without specifying the az within configuration or you can also request to have t2.micro instances available in same az from support.

One more option is change t2.micro to other instance type.. You can check the limit section to check what all availability of instances are there within your account.

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则