Search code examples
redisterraformamazon-elasticacheamazon-efs

Seed redis snapshot to elasticache


I have currently an Elasticache instance, I also have a redis snapshot (rdb file) stored on EFS. I was wondering if there's a way to seed snapshot's data in Elasticache (directly from EFS)

I found this documentation, but not sure if we can load data directly from EFS using SnapshotName parameter


Solution

  • There is no way directly use EFS for that purposes, but you can upload you snapshot to S3 instead and restore ElastiCache from that snapshot.

    There is an option called snapshot_name in terraform you can use after that: Terraform Resource - aws_elasticache_cluster

    Other reading: ElastiCache Backups restoring