Adding new resources (elasticache redis) to the default stack

Hi!
The book is great! And the resources that come with it are fantastic!
However, I am trying to test adding new resources, that are not in the defatult cfm packages, and am having trouble.
For example, after the full stack is up and running, an obvious next resource is caching.
So, I am thinking that adding a redis (elasticache) resource and testing that in my awesome new stack would be a good next test of my comprehension of the material.

However, I have hit a roadblock!
There is nothing in the default packages that seems to work, and although I did find this:

… it seems to use a different paradigm than the “Rapid Docker on AWS” does.
The format of the scripts seems quite different than each other and it is not obvious at all how to port it over.

Any pointers or approaches I might take to leverage the knowledge from the book to work with my own needs?

1 Like

Hi! Thanks for your feedback. You are right, we don’t have a cfn-module for redis… Good news: I started to work on it. You can track the progress here: https://github.com/cfn-modules/elasticache-redis/pull/1

Yay!
In the mean time, do you think there is another module I could look at that might be similar so that I can stretch my wings and try to put to use some of the knowledge from the book to practical use?

Or maybe some pointers to get me started? I don’t mind doing some work, that is how I learn best!

You could add this CloudFormation resource to your main template without using any module : https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-replicationgroup.html

or check out this module provided by a user:

1 Like

The redis module is now available.

You should be able to use it in the same way as the Aurora Serverless cluster is created.

2 Likes