[AWS] Elastic Beanstalk 에러: The following resource(s) failed to create: [AWSEBAutoScalingLaunchConfiguration].

2024. 10. 22. 23:17·기타
반응형

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-autoscaling-launch-templates.html

 

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을 사용해서 환경을 생성하기 때문. 

 

 

기존 환경 확인

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-autoscaling-launch-templates.html#environments-cfg-autoscaling-launch-templates-determine

 

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 를 검색해보면 알 수 있다.

 

LaunchConfiguration으로 되어있음

 

 

 

런치 템플릿 옵션 설정:

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-autoscaling-launch-templates.html#environments-cfg-autoscaling-launch-templates-options

 

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

  1. RootVolumeType option set to gp3. You can set this option with the console or the namespace .
  2. BlockDeviceMappings option contains gp3. You can set this option with the console or the namespace.
  3. DisableIMDSv1 option set to true. We recommend that you set this option using the namespace.
  4. 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 인스턴스도 잘 생성되었다.

 

반응형
저작자표시 비영리 변경금지 (새창열림)

'기타' 카테고리의 다른 글

[AWS] Elastic Beanstalk 에러: failed to create: [AWSEBInstanceLaunchWaitCondition].  (0) 2024.10.23
[AWS] Elastic Beanstalk 에러: The instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist.  (0) 2024.10.22
MySQL Workbench | ERROR: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ENGINE = InnoDB' at line 11  (0) 2023.03.08
MantisBT | 첨부파일 최대크기 늘리기  (0) 2023.02.17
리눅스 scp 명령어로 아마존 리모트 서버에 파일 복사하기  (0) 2023.02.16
'기타' 카테고리의 다른 글
  • [AWS] Elastic Beanstalk 에러: failed to create: [AWSEBInstanceLaunchWaitCondition].
  • [AWS] Elastic Beanstalk 에러: The instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist.
  • MySQL Workbench | ERROR: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ENGINE = InnoDB' at line 11
  • MantisBT | 첨부파일 최대크기 늘리기
이라후
이라후
  • 이라후
    화이팅
    이라후
  • 전체
    오늘
    어제
    • 분류 전체보기 (133)
      • TIL (23)
      • 기타 (26)
      • Python (14)
      • Django (10)
      • JavaScript (8)
      • git & GitHub (8)
      • Web (10)
      • Go (3)
      • wecode (31)
  • 반응형
  • 인기 글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
이라후
[AWS] Elastic Beanstalk 에러: The following resource(s) failed to create: [AWSEBAutoScalingLaunchConfiguration].
상단으로

티스토리툴바