By using AWS re:Post, you agree to the AWS re:Post Terms of Use

What is the recommended approach to recover video and audio data if an EC2 instance supporting concurrent users is accidentally terminated or deleted?

0

A user using an EC2 from AWS suddenly experienced issues while one of their experts accidentally deleted the running ec2. What would be the best possible way to recovery the video and audio data?

profile picture
asked 8 days ago35 views
1 Answer
1
Accepted Answer

The best answer to the question depends on the architecture and backup mechanisms in place. Here's a structured response:

  1. If EBS Snapshots Were Taken • Recover the Volume: If you had created EBS snapshots of the instance, you can use those snapshots to create a new EBS volume. • Attach to a New Instance: Launch a new EC2 instance and attach the recovered volume to access your video and audio data. • Minimal Downtime: Ensure snapshots are created regularly to minimize data loss.

  2. If Data Was Stored in S3 • Direct Recovery: No recovery is needed if the video and audio data were stored in S3 (recommended for large-scale concurrent users). Launch a new EC2 instance and reconfigure your application to fetch the data from S3.

  3. If No Backups Exist • Data Recovery Services: AWS cannot recover deleted instances. However, you can contact AWS Support to check if recovery is possible under special circumstances (e.g., undetached EBS volumes might still exist). • Implement Backup Moving Forward: Set up EBS snapshots, S3 storage, or AWS Backup to prevent similar issues.

  4. Preventive Best Practices • Auto Scaling: Use auto-scaling groups to handle instance failure seamlessly. • Immutable Data Storage: Store critical data in S3 or RDS rather than the EC2 instance itself. • Termination Protection: Enable termination protection for critical EC2 instances. • IAM Permissions: Restrict delete/terminate permissions to only authorized personnel.

The above solutions demonstrate a solid understanding of AWS recovery mechanisms and highlight preventive measures, Let me know if you have any further comments

profile picture
answered 8 days ago
profile picture
EXPERT
reviewed 7 days 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