
Launch Templates - AWS Elastic Beanstalk
Once an environment is using launch templates, Elastic Beanstalk will never move it back to launch configurations. This is the case even if any these option settings that prompted the original use of launch templates are removed.
docs.aws.amazon.com
2024년 10월 1일부터 Amazon EC2 Auto Scaling 서비스는 새로운 계정에서 더 이상 런치 구성(Launch Configurations)을 생성하는 것을 지원하지 않습니다. 이 변경은 런치 구성이 단계적으로 폐지되고, EC2 Auto Scaling 서비스에서 런치 템플릿(Launch Templates)으로 대체되기 때문입니다. 자세한 내용은 Amazon EC2 Auto Scaling 사용자 가이드의 Auto Scaling 런치 구성(Launch Configurations)을 참조하세요.
Elastic Beanstalk 계정 및 환경에 대한 런치 템플릿 전환의 영향은 다음과 같습니다:
- 기존 환경: 2024년 10월 1일 이전에 생성된 기존 환경은 영향을 받지 않습니다.
- 새로운 계정: 새로운 계정은 환경을 성공적으로 생성하기 위해 런치 템플릿 옵션 설정에 나열된 옵션 중 적어도 하나를 일시적으로 설정해야 합니다. Auto Scaling 서비스는 새로운 계정에 대해서는 런치 템플릿을 사용하여 환경을 생성합니다.
- 기존 계정: 새로운 계정과 마찬가지로, 계정에 환경이 없는 특정 리전에서는 기존 계정도 동일한 절차를 따라야 합니다. 이 경우, 기존 계정은 주어진 리전에서 새 환경을 성공적으로 생성하려면 런치 템플릿 옵션 설정에 나열된 옵션 중 적어도 하나를 일시적으로 설정해야 합니다. Auto Scaling 서비스는 주어진 리전의 해당 계정에 대해서만 런치 템플릿을 사용하여 환경을 생성합니다.
Elastic Beanstalk 환경을 새로 만들던 중 에러 발생.
"The Launch Configuration creation operation is not available in your account. Use launch templates to create configuration templates for your Auto Scaling groups."
"The following resource(s) failed to create: [AWSEBAutoScalingLaunchConfiguration]"

위 Launch Templates 안내 페이지를 읽어보다가 새로운 계정은 런치 템플릿 옵션 설정 의 옵션을 최소 하나 설정하라는 것을 발견. 새로운 계정은 Launch Configuration 이 아닌 Launch Template을 사용해서 환경을 생성하기 때문.
기존 환경 확인
Launch Templates - AWS Elastic Beanstalk
Once an environment is using launch templates, Elastic Beanstalk will never move it back to launch configurations. This is the case even if any these option settings that prompted the original use of launch templates are removed.
docs.aws.amazon.com
링크에 나와있는대로
AWS CloudFormation console -> 스택 -> 스택 세부 정보 -> 템플릿 탭
ctrl + f 로 launchtemplate / launchconfiguration 를 검색해보면 알 수 있다.

런치 템플릿 옵션 설정:
Launch Templates - AWS Elastic Beanstalk
Once an environment is using launch templates, Elastic Beanstalk will never move it back to launch configurations. This is the case even if any these option settings that prompted the original use of launch templates are removed.
docs.aws.amazon.com
- RootVolumeType option set to gp3. You can set this option with the console or the namespace .
- BlockDeviceMappings option contains gp3. You can set this option with the console or the namespace.
- DisableIMDSv1 option set to true. We recommend that you set this option using the namespace.
- EnableSpot option set to true. For more information, see Spot instance support and Configuration Auto Scaling group configuration .
1번 RootVolumeType gp3으로 설정
나는 1번 루트 볼륨을 gp3으로 설정해서 해결했다.
환경 생성 -> 4단계 (인스턴스 트래픽 및 크기 조정 구성)
루트 볼륨(부팅 디바이스) 에서 루트 볼륨 유형을 범용 3(gp3)으로 선택한다.

4번
IMDSv1은 기본이 비활성화 true인데 기본값으로 생성했을때 launch configuration으로 생성되었다. 그래서 namespace에서 설정하는 것을 권장하는 것 같은데..

환경 확인
AWS CloudFormation console -> 스택 -> 스택 세부 정보 -> 템플릿 탭
이번에 생성된 스택 탬플릿을 보면 launch template를 사용해서 만들어진것을 알 수 있다.

결과


기존 에러도 나지 않고 ec2 인스턴스도 잘 생성되었다.