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

demandé il y a un an287 vues
2 réponses
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
répondu il y a un an
profile pictureAWS
EXPERT
kentrad
vérifié il y a un an
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.

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions