O'Reilly logo

Salt Cookbook by Anirban Saha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying ElastiCache clusters

One more important feature in present day application management is caching services, and Amazon provides a service for this task called ElastiCache. In this recipe, we will learn how to configure ElastiCache using Salt modules.

How to do it...

  1. Create and edit /opt/ salt-cookbook/production/aws/elasticache.sls to have the following entries:
    cookbook-elasticache:
      boto_elasticache.present:
        - engine: redis
        - cache_node_type: cache.t1.micro
        - num_cache_nodes: 1
        - notification_topic_arn: arn:aws:sns:us-west- 2:808429213833:salt-cookbook
        - region: us-west-2
        - keyid: <access-key>
        - key: '<secret-key>'
  2. Apply the state to the Salt master by running the following command:
    [root@salt-master aws]# salt 'salt-master.teknification.com' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required