IAM 설정 후 ec2 인스턴스 목록에 접근할 수 없을 때
Issue2022. 4. 6. 17:24IAM 설정 후 ec2 인스턴스 목록에 접근할 수 없을 때

root 계정에서 IAM 역할을 만들어 새로 생성하는 ec2에 부여한 뒤 터미널로 접속해 ec2 인스턴스 목록을 출력하려고 하니 다음과 같은 에러가 발생했다. [ec2-user@ip-172-31-30-215 ~]$ aws ec2 describe-instances --region ap-northeast-2 An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation: You are not authorized to perform this operation. An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation: Y..

image