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

gefragt vor einem Jahr287 Aufrufe
2 Antworten
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
beantwortet vor einem Jahr
profile pictureAWS
EXPERTE
kentrad
überprüft vor einem Jahr
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.

beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen