Bug Report - Copy Launch configuration to launch template

0

Proceed as follows: step 1: go to Launch configurations console. step 2: choose a Launch configuration. step 3: copy to launch template > Copy selected > Copy.

I got an error message: "The security group ID 'awseb-e-yy32fjb***-stack-AWSEBSecurityGroup-RKGBZ9JQ****' is not valid. The expected format is sg-xxxxxxxx or sg-xxxxxxxxxxxxxxxxx."

After investigating, I realized that AWS is taking "Security name" data instead of "Security ID" when copying Launch configuration to launch template.

as in my case above, 'awseb-e-yy32fjbzmp-stack-AWSEBSecurityGroup-RKGBZ9JQ****' is the security group name, AWS sends this data as security group ID, so get above error.

3개 답변
1

Thanks for reporting this, and for the followup info in the comment. I'll look into the Security group name vs ID issue with our console team. However, I see your resources have AWSEB in the name. This implies the resources are created through ElasticBeanstalk. You shouldn't update the ASG directly, as any update to the Beanstalk environment in the future will likely undo your changes. Instead, update the Beanstalk environment directly to migrate it to a launch template.

If you think any changes may have been made to the instance/application/ASG outside of Beanstalk, I would highly encourage taking a snapshot or otherwise backing up anything important first to prevent accidental data loss, since Beanstalk will redeploy the last known application revision when you update it.

AWS
답변함 일 년 전
1

The guidance on converting launch configs to templates isn't very clear when it comes to Elastic Beanstalk, having now done this I've found that a normal environment update or environment clone, doesn't swap the configurations to templates, however enabling spot instances under "Capacity -> Auto Scaling Group -> Fleet Composition = Combine purchase options and instances" does then force the environment to convert them to templates as expected.

답변함 일 년 전
0

I just tried the same and it worked fine for me in ap-southeast-2.

전문가
답변함 일 년 전
  • i just tried again, when i create a new Launch configuration everything works fine. it seems that this error only occurs with old Launch configurations (created around 2016 - 2017).

    when I try to create a Launch template by myself, based on the old Launch configuration configs, I can't find the AMI that Launch configuration is using.

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

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

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

관련 콘텐츠