AWS EC2 Instance Metadata

-AWS EC2 Instance Metadata is powerful but one of the least known features to developers

-It allows AWS EC2 instance to "learn about themselves" without using an IAM Role for that purpose.

-The URL is http://169.254.169.254/latest/meta-data

-You can retrieve the IAM Role name from the metadata, but you Cannot retrieve the IAM Policy

-Metadata = Info about the EC2 instance

-Userdata = launch script of the EC2 instance

EC2 인스턴스 메타데이터는 강력한 기능이지만 개발자에게 잘 알려지지 않은 기능이다.

EC2 인스턴스가 스스로 학습하도록 하는데 IAM 역할이 필요없다.

-URL은 http://169.254.169.254/latest/meta-data이다.

169.254.169.254의 IP는 AWS의 내부 IP로 EC2 인스턴스에서만 실행된다.

메타데이터는 EC2 인스턴스의 정보

유저데이터는 EC2 인스턴스의 스크립트를 실행하는 개념이다.

+ Recent posts