[AWS] Elastic Beanstalk 에러: The instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist.

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

https://stackoverflow.com/questions/30790666/error-with-not-existing-instance-profile-while-trying-to-get-a-django-project-ru/76620598#76620598

 

Error with not existing instance profile while trying to get a django project running on AWS Beanstalk

I`m trying to deploy a django project to AWS Beanstalk following this tutorial. I executed eb create and after a while I get the error The instance profile aws-elasticbeanstalk-ec2-role associa...

stackoverflow.com

 

 

 

문제 원인

이전에는 Elastic Beanstalk가 AWS 계정에서 처음으로 환경을 생성할 때 기본 EC2 인스턴스 프로파일인 aws-elasticbeanstalk-ec2-role을 자동으로 생성했습니다. 그러나 최근 AWS 보안 가이드라인에 따라 AWS 서비스가 다른 AWS 서비스(이 경우 EC2)와 신뢰 정책을 가진 역할을 자동으로 생성하는 것이 허용되지 않습니다. 문이 문제를 해결하기 위해서는 수동으로 인스턴스 프로파일을 생성해야 합니다.

 

인스턴스 프로파일 권한 정책 확인

환경 생성 시

2단계 서비스 엑세스 구성 -> EC2 인스턴스 프로파일 -> 권한 세부 정보 보기

 

 

 

 

권한 보기에서 어떻게 만들어야 하는지 확인 가능.

  • 신뢰할 수 있는 엔터티: ec2.amazonaws.com
  • 권한: AWSElasticBeanstalkWebTier, AWSElasticBeanstalkWorkerTier, AWSElasticBeanstalkMulticontainerDocker

 

 

권한 생성

IAM -> 역할 -> 역할생성

1단계 신뢰할 수 있는 엔터티 선택

  • 신뢰할 수 있는 엔터티 유형: AWS 서비스
  • 사용 사례: EC2

 

2단계 권한 추가

  • AWSElasticBeanstalkWebTier
  • AWSElasticBeanstalkWorkerTier
  • AWSElasticBeanstalkMulticontainerDocker

 

3단계 이름 지정, 검토 및 생성

  • 역할 이름: aws-elasticbeanstalk-ec2-role

 

 

EB 환경 생성 시 적용

2단계 EC2 인스턴스 프로파일에서 방금 만든 프로파일 선택

 

 

 

 

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

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

AWS Certified Data Engineer – Associate (DEA-C01) 만점 합격 후기  (4) 2025.02.12
[AWS] Elastic Beanstalk 에러: failed to create: [AWSEBInstanceLaunchWaitCondition].  (0) 2024.10.23
[AWS] Elastic Beanstalk 에러: The following resource(s) failed to create: [AWSEBAutoScalingLaunchConfiguration].  (1) 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
'기타' 카테고리의 다른 글
  • AWS Certified Data Engineer – Associate (DEA-C01) 만점 합격 후기
  • [AWS] Elastic Beanstalk 에러: failed to create: [AWSEBInstanceLaunchWaitCondition].
  • [AWS] Elastic Beanstalk 에러: The following resource(s) failed to create: [AWSEBAutoScalingLaunchConfiguration].
  • 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
이라후
이라후
  • 이라후
    화이팅
    이라후
  • 전체
    오늘
    어제
    • 분류 전체보기 (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 instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist.
상단으로

티스토리툴바