본문 바로가기
[AWS-FRF]/SSM

[중요][AWS] Simple SSM automation scripts in Amazon EC2!!

by METAVERSE STORY 2024. 9. 16.
반응형
728x170

 
 
## EC2 에서 자동화 스크립트 실행 방법



############################

While launching the EC2, use the below user data:

For Ubuntu:
#!/bin/bash
apt update -y
snap switch --channel=candidate amazon-ssm-agent
systemctl start snap.amazon-ssm-agent.amazon-ssm-agent.service 


For RHEL:
#!/bin/bash
dnf update -y
dnf install -y https://s3.amazonaws.com/ec2-download...

Automation scipt (Document) is available in this Github link (given below):
https://shorturl.at/dkwM8
 
 
#####################################
## SSM - Documents 이동
- Create Document ==> Command or Session 선택

 
 
## Owned by me (만든 문서 확인)

 
 - Run Command 클릭

  
- Output 옵션 설정

 
 
 
## 배포 후 상태

 
 
 
 
 
https://www.youtube.com/watch?v=55sHGJtiVfo

 

반응형
그리드형

댓글