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?

已提问 4 个月前441 查看次数
1 回答
3
已接受的回答

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
专家
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则