How can we send the logs of an SSM document execution via Run command when the SSM DOCUMENT is executed through the Eventbridge rule schedule?
For ex; Running a simple Hello world script in linux and need the run command output for it
How can we send the logs of an SSM document execution via Run command when the SSM DOCUMENT is executed through the Eventbridge rule schedule?
For ex; Running a simple Hello world script in linux and need the run command output for it
Copyright © 2021 Jogjafile Inc.
There is no log configuration in the EventBridge rule for any target type.
The logging will be configured on the Target, e.g. Lambda function. EventBridge will have an entry in CloudTrail but that doesn't provide any information about the output of the command executed.
I tested this. There should be an entry in Systems Manager Run Command console with the Command-ID. Then you can use aws cli to check the command invocation details.
If you are using Run Command to execute a script, you can also upload the script output to CloudWatch logs or S3 bucket as part of the script.