Launching a new EC2 instance 'status reason: 'Patch Group' is not a valid tag key. Launching ec2 instance failed. with Launch template.

0

Launching a new EC2 instance 'status reason: 'Patch Group' is not a valid tag key. Launching ec2 instance failed. with Launch template. Getting this error while using Launch template with ASG.

For the same except Launch template if I used Launch configuration then I can create ec2 instance under this ASG.

while using launch template getting an error like: The Tag key must match pattern ([0-9a-zA-Z\-_+=,@:]{1,255}}, and must not be a reserved name('.','..','_index').

According to above error if I remove space between tag key, then I can create ec2 instance.

But my main concern why it was works okay with launch configuration?

demandé il y a 4 mois441 vues
1 réponse
3
Réponse acceptée

To allow a space in an EC2 Tag, you need to DISABLE Allow tags in instance metadata

You can do this by selecting the EC2, then click Actions\Instance Settings\ Allow tags in instance metadata

You may find its disabled by default in your Launch configuration by default.

I believe you can also set this when using the Create EC2 option in the GUI

profile picture
EXPERT
répondu il y a 4 mois

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