AWS Builder Center: Learn, Build and Connect with builders in the AWS community
AWS Builder Center is the official home for builders on AWS. Share and read what others are working on, follow people who inspire you, explore training and workshops, and find tools to support what you're building.
Amazon ECS 컨테이너 로그가 CloudWatch Logs로 전송되지 않는 이유는 무엇입니까?
로그 그룹이 존재하지 않는 경우, Create log group(로그 그룹 생성)을 선택합니다.
작업 정의와 일치하는 로그 그룹 이름을 입력합니다.
아니면 작업 정의의 logConfiguration에서 options 블록에 **"awslogs-create-group": "true"**를 추가하여 로그 드라이버가 자동으로 로그 그룹을 만들게 허용할 수도 있습니다.
참고: IAM 정책에 logs:CreateLogGroup 권한을 포함해야 awslogs-create-group을 사용할 수 있습니다. 자세한 내용은 Amazon ECS 작업 실행 IAM 역할을 참조하십시오.
네트워크 구성 확인
작업이 Amazon Virtual Private Cloud(Amazon VPC)에서 인터넷 게이트웨이 없이 awslogs 로그 드라이버를 사용하는 경우, CloudWatch Logs용 인터페이스 VPC 엔드포인트를 만드십시오. com.amazonaws.Region.logs를 서비스로 선택합니다.