late-businessperson-58140
12/05/2025, 2:15 PMtall-airline-16756
12/05/2025, 2:15 PMtall-airline-16756
12/05/2025, 2:15 PMaccess_key value you're using (partial is fine—first 4 and last 4 characters) and whether that IAM key was recently rotated or deleted?
What I’ll do once you share that:
• Verify how the credentials are being passed to the egress and look for mismatches (wrong account, deleted key, or region/bucket mismatch).
• Advise the exact fix (update credentials, create a new IAM key, or correct config) and the minimal steps to apply it.
Share the above details and I’ll guide you through the next steps.
Sources: Egress output types | LiveKit docs | server-sdk-ruby | livekit/livekit_composite | DeepWikilate-businessperson-58140
12/05/2025, 2:22 PMtall-airline-16756
12/05/2025, 2:22 PMlate-businessperson-58140
12/05/2025, 2:25 PMtall-airline-16756
12/05/2025, 2:25 PMAWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY)
• the egress output access_key / secret fields in the job config
• an attached IAM role (instance/EKS task role) or other method
Also please confirm the first 4 and last 4 characters of the Access Key ID you expect to be used (e.g., ABCD...WXYZ). With that I will tell you the exact fix (update the job config / env / role or rotate the key) and the minimal steps to apply it.late-businessperson-58140
12/05/2025, 2:26 PMtall-airline-16756
12/05/2025, 2:26 PMs3 object (access_key=settings.S3_KEY_ID, secret=settings.S3_KEY_SECRET). Since AWS returns InvalidAccessKeyId, try these targeted checks and actions:
1. Confirm the exact Access Key ID LiveKit is sending
• Print/log settings.S3_KEY_ID from the process running this egress request to verify it's the value you expect (show first 4 / last 4 chars only).
1. Verify the key exists and is active in the same AWS account & region
• In AWS Console → IAM → Users → Security credentials, find that Access Key ID and confirm its status is Active.
• Ensure the key belongs to the same AWS account that owns the physical-consultation bucket.
1. Check for accidental whitespace/encoding issues
• Ensure settings.S3_KEY_ID has no leading/trailing whitespace or hidden characters (trim it or compare lengths).
• Ensure the key string is not URL- or base64-encoded accidentally.
1. Confirm LiveKit process is using the same settings values
• If your app runs in multiple environments or containers, confirm the running instance that called the egress used the updated settings (restart the process after changes if needed).
1. Test the credentials directly with AWS CLI from the same host
• Configure the AWS CLI with the same key/secret and run a simple aws s3 ls s3://physical-consultation --region ap-south-1 to confirm the key is valid and has permissions.
1. If the key is missing in IAM or was rotated/deleted
• Create a new Access Key under the intended IAM user, update settings.S3_KEY_ID / settings.S3_KEY_SECRET with the new values in the environment or config, then restart your app and re-run the egress.
1. Confirm IAM permissions
• Ensure the IAM user has s3:PutObject permission for the bucket (and any bucket policy does not block the user/account).
If you prefer, share the first 4 and last 4 characters of settings.S3_KEY_ID and the output of aws sts get-caller-identity (when using the same key on the host) and I’ll help interpret the results and next steps. Would you like help with the CLI commands to run these tests?