---
title: "Discussion on \"Executing shell script in EC2 using AWS Systems Manager\" | Hashnode"
description: "Discussion on \"Executing shell script in EC2 using AWS Systems Manager\". In this article, we will see how to execute a shell script in EC2 using AWS Systems Manager (SSM) and capture the logs in AWS CloudWatch.\nAWS SSM cannot perform any actions on EC2 instances by default. For an EC2 Instance to be managed by SSM,\n\nThe I..."
url: "https://hashnode.com/posts/executing-shell-script-in-ec2-using-aws-systems-manager/6499c6ed359c499b4be73c0b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Executing shell script in EC2 using AWS Systems Manager](https://adhithiyan.hashnode.dev/executing-shell-script-in-ec2-using-aws-systems-manager?utm_source=hashnode&utm_medium=feed)

In this article, we will see how to execute a shell script in EC2 using AWS Systems Manager (SSM) and capture the logs in AWS CloudWatch. AWS SSM cannot perform any actions on EC2 instances by default. For an EC2 Instance to be managed by SSM, The I...

Jun 26, 2023 · 2 min read · adhithiyan.hashnode.dev  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#aws-ssm](https://hashnode.com/tag/aws-ssm)

## Written by

[Adhithiyan Azhagudurai](https://hashnode.com/@adhithiyan)

@adhithiyan

  
[View profile](https://hashnode.com/@adhithiyan)

Data Engineer

## Responses

Comments are turned off for this post.
