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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ