How ShopSecure protected its CCTV archive across two Regions with Amazon S3
ShopSecure, a retail company in Lagos, moved its CCTV footage archive to Amazon S3 with a copy in a second AWS Region. Availability rose to 99.99%, monthly storage cost fell from $4,500 to $3,480, and a tested failover took about 15 minutes.
The problem.
ShopSecure is a retail company in Lagos, Nigeria. It records CCTV footage across its store sites for security and loss prevention, and keeps that footage for investigations. Manthic, an Amazon Web Services (AWS) Partner, moved ShopSecure's footage archive to AWS, working with NetApp Cloud Volumes ONTAP from NetApp, an AWS Partner, for file storage and backups.
ShopSecure kept its footage archive on colocated storage hardware in a single location. Storage cost about $4,500 a month, measured from ShopSecure's monthly storage expenditure, and the archive was available 99% of the time. Large volumes of historical footage had built up, and the hardware was close to its limits.
There was no copy of the archive anywhere else. If the colocated storage failed, or the site was affected, footage needed for investigations could be lost, and every new camera and every extra month of footage added cost.
What we built.
Moving the historical footage
The first step was moving the historical footage. Sending it over the network would have taken too long and slowed ShopSecure's connection, so we copied it onto AWS Snowball devices and shipped them to AWS, where the data was imported into Amazon Simple Storage Service (Amazon S3). New footage then flowed to Amazon S3 over the network, using multipart upload for large video files.
A primary archive with a copy in a second Region
Amazon S3 in Europe (Ireland) is now the primary footage archive, chosen because it stores data across multiple Availability Zones and grows without capacity planning. S3 Versioning and S3 Cross-Region Replication copy every file to a second bucket in Europe (London), encrypted with a separate key in that Region. Existing footage was copied across with S3 Batch Replication. If the Ireland Region became unavailable, the archive access application would be pointed at the London bucket. We tested that failover, and it took about 15 minutes. S3 Lifecycle rules move older footage to Amazon S3 Glacier Deep Archive after two years, in both Regions.
Servers and shared file storage
The video management application runs on Amazon Elastic Compute Cloud (Amazon EC2) in private subnets. Amazon Elastic Block Store (Amazon EBS) volumes hold recordings and buffer footage before upload. For shared file storage we used two services side by side. NetApp Cloud Volumes ONTAP provides shared NFS file storage for the video processing files used by the processing servers. Amazon Elastic File System (Amazon EFS) holds the other shared application files. NetApp Snapshot copies protect the Cloud Volumes ONTAP volumes daily, and NetApp Backup and Recovery copies the volume backups to Amazon S3, where they are kept for 30 days.
Encryption, access and monitoring
All storage is encrypted with AWS Key Management Service (AWS KMS). AWS Identity and Access Management (AWS IAM) roles give each server access only to what it needs, and Amazon CloudWatch monitors the servers and alerts the team. The AWS environment is defined in AWS CloudFormation, so changes go through reviewed code.
AWS services in this engagement
The results.
A copy of every file outside the primary Region. Footage is replicated to London, and a tested failover took about 15 minutes.
Higher availability. Storage availability rose to 99.99%, up from 99%, measured with storage availability monitoring and Amazon S3 metrics.
Lower cost. Monthly storage cost fell to $3,480, down from $4,500, measured from monthly expenditure before and after the move.
Daily backups of processing files. Cloud Volumes ONTAP volumes are backed up every day and kept for 30 days in Amazon S3.
What we learned.
Moving years of historical footage over the network was not practical. We now work out data volumes, available bandwidth and deadlines at the very start of a storage project, and use AWS Snowball for large migrations instead of discovering the transfer problem halfway through.
About Manthic.
Manthic Technologies is an AWS Advanced Tier Services Partner based in Lagos, Nigeria. We design, build and run solutions on AWS for our clients.
Tell us what you're trying to ship.
A 30-minute scoping call with the engineers who would do the work.