Add SSM command output logging to S3 (Traceability)#306
Open
harshavemula-ua wants to merge 1 commit intomainfrom
Open
Add SSM command output logging to S3 (Traceability)#306harshavemula-ua wants to merge 1 commit intomainfrom
harshavemula-ua wants to merge 1 commit intomainfrom
Conversation
Write full EC2 command stdout/stderr to
s3://ciroh-community-ngen-datastream/ssm-logs/{execution_name}/
by adding OutputS3BucketName and OutputS3KeyPrefix to the SSM
send_command call. Inject Step Functions execution name into the
Commander Lambda payload via States.JsonMerge for traceable log paths.
5 tasks
arpita0911patel
approved these changes
Feb 12, 2026
| } | ||
| 'executionTimeout': [f"{3600*24}"] | ||
| }, | ||
| OutputS3BucketName='ciroh-community-ngen-datastream', |
Collaborator
There was a problem hiding this comment.
@harshavemula-ua, I think this is a worthy and needed feature, but it may motivate some changes in datastreamcli or the prod bmi configs before we deploy. Reason being is NextGen can generate a massive amount of print outs, which will bog the ec2 instance down if ssm needs to stream everything to s3. I've dealt with this in the past by piping all of the ngiab docker print outs to /dev/null, but this gets rid of everything that nextgen prints out. Before we merge this, let's do some tests to confirm the ec2 does not slow down substantially for any execution type. If it does, let's identify why and see if we can suppress printouts in a judicial way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
s3://ciroh-community-ngen-datastream/ssm-logs/{execution_name}/via SSMOutputS3BucketNameandOutputS3KeyPrefixStates.JsonMergefor traceable, browsable log pathsssm-logs/cfe_nom_short_range_00_VPU_07_20260211.../) matching the Step Functions consoleS3 Log Folder Structure
Lifecycle Configuration
Sample Output
Test plan
test_harshaenvironments3://ciroh-community-ngen-datastream/ssm-logs/test-exec-logging-20260211-123820/