Sign in

Enable S3 logging by updating SSM file

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
  1. 1

    Store the content of SSM-SessionManagerRunShell.json file

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    echo '{ "schemaVersion": "1.0", "description": "Document to hold regional settings for Session Manager", "sessionType": "Standard_Stream", "inputs": { "s3BucketName": <bucket_name>, "s3KeyPrefix": "", "s3EncryptionEnabled": true, "cloudWatchLogGroupName": "", "cloudWatchEncryptionEnabled": true, "cloudWatchStreamingEnabled": false, "kmsKeyId": "", "runAsEnabled": false, "runAsDefaultUser": "", "idleSessionTimeout": "", "maxSessionDuration": "", "shellProfile": { "windows": "date", "linux": "pwd;ls" } } }' > SessionManagerRunShell.json
    copied
    1
  2. 2

    Update the SSM document to enable S3 logging

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    file_content=$(cat SessionManagerRunShell.json) aws ssm update-document --name "SSM-SessionManagerRunShell" --content "$file_content" --document-version "\$LATEST"
    copied
    2