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?

asked 4 months ago389 views
1 Answer
3
Accepted Answer

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
answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions