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

feita há um ano287 visualizações
2 Respostas
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
respondido há um ano
profile pictureAWS
ESPECIALISTA
kentrad
avaliado há um ano
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.

respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas