- AWSCLI installed and setup in target machine (CCM).
- This code deployed in go for AWS Lambda.
- Environment variables setup as appropriate.
- yum install epel-release –y
- yum install python-pip –y
- pip install awscli
- aws configure
- GOOS=linux go build -o sync
- zip deployment.zip sync
-
Upload deployment.zip
-
Set handler as sync
-
Set TARGET_IP = {target_machine_ip}
-
Set PEM_FILE = {target_machine_pem_file}
-
Set USERNAME = {target_machine_username}
-
Upload PEM_FILE to the S3 bucket of your choice.
-
Set S3 bucket of your choice to be the source for the Lambda fujnction. Event type = ObjectCreated
Thanks. For any queries contact - sandyethadka@gmail.com