stackmate
  • Guides
    • Getting started
    • What is stackmate
    • Installation
    • Output files
  • Configuration
    • Configuration File
      • state
      • environments
      • provider
      • region
    • Application Services
    • Database services
    • Cache Services
    • Object storage
  • Commands
    • stackmate preview
    • stackmate deploy
    • stackmate destroy
  • How to
    • Use your own VPC on AWS
    • Handle SSL failures for AWS
  • Appendix
    • License
Powered by GitBook
On this page
  • What you get when introducing this service to your configuration
  • Required attributes
  • Optional attributes
  • Example configuration

Was this helpful?

  1. Configuration

Cache Services

PreviousDatabase servicesNextObject storage

Last updated 1 year ago

Was this helpful?

Stackmate offers infrastructure deployment for major managed cache services (like AWS Elasticache for example)

What you get when introducing this service to your configuration

  • A managed cache instance with sane defaults

Required attributes

  • type - string - It should be either redis or memcached

Optional attributes

  • size - string - The instance size. Should be one of the instances the provider has available

  • version - string - The cache version to use. These are dictated by the cloud provider (eg. AWS) and it's one of the versions they currently support.

  • storage - number - The size of the storage space in Gigabytes

  • port - number - The port to use. By default, 6379 is assigned to redis and 11211 is assigned to memcached

  • monitoring - object - Any monitoring options available for the service. Example configuration is shown below

The typical apply here too.

Example configuration

# ... the rest of the configuration ...
environments:
  production:
    # ... more services ...
    my-cache:
      type: redis
      provider: aws         # optional when your provider's set to aws
      region: eu-central-1  # optional if you have a region set for the project
      size: cache.t3.micro
      storage: 30
      version: 7.0
      monitoring:
        urls:
          - https://a-webhook-to-get-alerted-by.com
        emails:
          - cache-alerts@mywebsite.com

Common Service Options