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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠