EC2 부트스트래핑

  • It is possible to bootstrap our instances using an EC2 User data script.
  • bootstrapping means launching commands when a machine starts. That script is only run once at the instance first start, 그리고 다신 실행되지 않는다.
  • EC2 user data is used to automate boot tasks(= bootstrapping) such as:
    • Installing updates
    • Installing software
    • Downloading common files from the internet
    • Anything you can think of
    • 다만 사용자 데이터 스크립트에 뭘 추가할수록 할 일이 늘어남
  • The EC2 User Data Script runs with the root user
    모든 명령문은 sudo로 실행됨.

여기 있다. bootstrap.

Pasted image 20250822061943.png
이렇게 명령어를 적어 주고 인스턴스 시작 딱 눌러주면 된다