반응형
728x170
1. 우분투 설치
2. IAM (Instancecore) & Attached
2. System Manager ==> Managed Instance (Online 확인)
4. 명령어 실행 ==> Run Command ==> aws-runshellscript ==> command parameter (실행자 확인 할것!!)
---- deploy.sh
#! /bin/sh
sudo -i
su frf~~
cd .
systemctl stop ~~~
sleep 3
aws s3 cp s3://~~ /home/~~
sleep 3
backup.sh
sleep 3
systemctl start ~~~
https://www.youtube.com/watch?v=FOBueFDPVF4
반응형
그리드형
'[AWS-FRF] > SSM' 카테고리의 다른 글
[중요][AWS] Simple SSM automation scripts in Amazon EC2!! (20) | 2024.09.24 |
---|---|
[중요][AWS] Systems Manager용 Cron 및 비율 표현식!! (16) | 2024.09.23 |
댓글