Run Commands on EC2 With SSM SendCommand and AWS SDK v3
Run shell scripts on one instance or a tagged fleet with SendCommandCommand, wait for results, read the output and keep IAM scoped to the right nodes.
ChatWithCloud Blog11 min read
3 stories
Run shell scripts on one instance or a tagged fleet with SendCommandCommand, wait for results, read the output and keep IAM scoped to the right nodes.
Private EC2에 22번 포트도, AWS Access Key도 두지 않고 GitHub Actions로 배포하는 법. OIDC 페더레이션으로 정적 키를 없애고, S3를 산출물 허브로, SSM Run Command(단순) 또는 CodeDeploy(무중단)로 인스턴스에 코드를 적용하는 두 가지 패턴을 끝까지 본다.
Private EC2에 SSH 22번 포트를 한 번도 열지 않고 셸에 접속하는 법. SSM Session Manager의 작동 원리(Agent가 AWS에 폴링), 3가지 전제조건(Agent/IAM/Network), NAT Gateway vs VPC Endpoint 비용 비교, Port Forwarding으로 RDS까지 안전하게 잇는 패턴까지.
Showing 3 of 3 stories
You're all caught up.
Get the top AI news and tools straight to your inbox every week.
Weekly · AI news
Join 15,000+ AI enthusiasts