Hide AWS access key from source code


I'm following tutorial from

It works great! But the access key is visible to user in the source code. How can I go about hiding access key from the user?
Tutorial puts it visible in the source code:

var options = {
accessKeyId: $('#accessKeyId').val(),
secretAccessKey: $('#secretAccessKey').val(),
sessionToken: $('#sessionToken').val() || undefined,
region: $('#region').val(),
endpoint: $('#endpoint').val() || undefined
var kinesisVideo = new AWS.KinesisVideo(options);
var kinesisVideoArchivedContent = new AWS.KinesisVideoArchivedMedia(options);

I'm using Django web server.

asked 4 years ago623 views
1 Answer
Accepted Answer

Hi tuppe,

There's a similar question on our Github. Please find the answer here, https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-js/issues/88.


answered 4 years ago
profile picture
reviewed 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions