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

[참고] AWS Systems Manager : Execute commands & scripts on EC2 Linux instance Remotely | AWS SSM | 2021

by METAVERSE STORY 2024. 9. 1.
반응형
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!!  (16) 2024.09.16

댓글