Dipesh Dulal Posted May 27, 2021 Share Posted May 27, 2021 We have tutorial for S3 integration using a single instance. https://github.com/ant-media/Ant-Media-Server/wiki/Amazon-(AWS)-S3-Integration#forward-mp4-and-preview-request-to-aws-s3-in-your-application I am having hard time understanding setting up aws s3 in the cluster setup. Do we require separate cloud formation template for this ? Link to comment Share on other sites More sharing options...
0 Enes Kuluk Posted May 27, 2021 Share Posted May 27, 2021 You need to follow that guide but you need to modify mongodb settings instead of red5-web.properties. Could you check this thread please: https://groups.google.com/g/ant-media-server/c/VapAzcJccXA/m/dF7S8nmGCQAJ My colleague Selim describes how to get it done. Best Regards Enes. Link to comment Share on other sites More sharing options...
0 Dipesh Dulal Posted May 31, 2021 Author Share Posted May 31, 2021 Hello Enes, Thanks for response. I found that there is clusterdb database and AppSettings collection. But how do we add <bean id="app.storageClient" class="io.antmedia.storage.AmazonS3StorageClient"> <property name="accessKey" value="Enter your S3_ACCESS_KEY" /> <property name="secretKey" value="Enter your S3_SECRET_KEY" /> <property name="region" value="Enter your REGION_NAME e.g. eu-central-1" /> <property name="storageName" value="Enter your BUCKET_NAME" /> </bean> Into the collection? I can't seem to understand the settings. Regards, Dipesh Link to comment Share on other sites More sharing options...
0 Enes Kuluk Posted June 1, 2021 Share Posted June 1, 2021 Let me get in contact with the Selim, I'll respond back to you after meeting. Best Regards, Enes. Link to comment Share on other sites More sharing options...
0 Dipesh Dulal Posted June 2, 2021 Author Share Posted June 2, 2021 Thank you Enes. That would be great. ♂️ Since we had one origin, two edge servers so, I went into each of the servers and changed the configuration manually as we would do with the single instance. But a proper way to change the settings would be great. Link to comment Share on other sites More sharing options...
0 Selim Emre Posted June 4, 2021 Share Posted June 4, 2021 Hi Dipesh, Have a good day. I hope, you are well. No need to add S3 configuration details manually. You can add User Data configurations after the load balancing system created with Cloudformation. These configurations add your S3 configurations to each new server at startup. You need to add below details in Launch Configurations / User Data section. #For LiveApp sed -i '/^<\/beans>.*/i <bean id="app.storageClient" class="io.antmedia.storage.AmazonS3StorageClient">\n<property name="accessKey" value="accesskey" />\n<property name="secretKey" value="secretkey" />\n<property name="region" value="eu-north-1" />\n<property name="storageName" value="bucketname" />\n</bean>' /usr/local/antmedia/webapps/LiveApp/WEB-INF/red5-web.xml #For WebRTCAppEE sed -i '/^<\/beans>.*/i <bean id="app.storageClient" class="io.antmedia.storage.AmazonS3StorageClient">\n<property name="accessKey" value="accesskey" />\n<property name="secretKey" value="secretkey" />\n<property name="region" value="eu-north-1" />\n<property name="storageName" value="bucketname" />\n</bean>' /usr/local/antmedia/webapps/WebRTCAppEE/WEB-INF/red5-web.xml Please check below docs for more details: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html#user-data-console https://stackoverflow.com/questions/24503502/how-to-add-user-data-in-amazon-launch-configuration I hope, I could help you. Best Regards, Selim Link to comment Share on other sites More sharing options...
0 Dipesh Dulal Posted June 7, 2021 Author Share Posted June 7, 2021 Thank You. ♂️ Regards, Dipesh Link to comment Share on other sites More sharing options...
Question
Dipesh Dulal
We have tutorial for S3 integration using a single instance.
Link to comment
Share on other sites
Top Posters For This Question
4
2
1
Popular Days
May 27
2
Jun 4
1
Jun 7
1
May 31
1
Top Posters For This Question
Dipesh Dulal 4 posts
Enes Kuluk 2 posts
Selim Emre 1 post
Popular Days
May 27 2021
2 posts
Jun 4 2021
1 post
Jun 7 2021
1 post
May 31 2021
1 post
6 answers to this question
Recommended Posts