https://github.com/danieldacosta/lambda-ssm-ec2
Lambda that executes Shell Script inside EC2 using SSM
https://github.com/danieldacosta/lambda-ssm-ec2
Last synced: about 1 month ago
JSON representation
Lambda that executes Shell Script inside EC2 using SSM
- Host: GitHub
- URL: https://github.com/danieldacosta/lambda-ssm-ec2
- Owner: DanielDaCosta
- Created: 2022-04-27T19:00:37.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-29T13:32:23.000Z (about 4 years ago)
- Last Synced: 2025-01-11T01:10:37.965Z (over 1 year ago)
- Language: Python
- Size: 33.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lambda SSM EC2
Lambda that executes Shell Script inside EC2 using [AWS Systems Manager Run Command](https://docs.aws.amazon.com/systems-manager/latest/userguide/execute-remote-commands.html).
# Diagram

# Env Variables
```
INSTANCE_NAME = The ID of the managed node where the command should run
SNS_ROLE = The ARN of the service role to use Amazon SNS notifications for Run Command commands.
SNS_ARN = An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic.
BUCKET_NAME = The name of the S3 bucket where command execution responses should be stored.
```
# References
- boto3 SSM Send Command: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ssm.html#SSM.Client.send_command