ackee
Docs/Ackee Script

cache

A managed Redis, private to the network.

A managed Redis, private to the project's network.

ackee.ack
ackee 1
​
project "shop" {
cloud = "azure"
region = "eastus"
}
​
service "web" {
image = "mcr.microsoft.com/k8se/quickstart:latest"
public = true
}
​
cache "sessions" {
size = "medium"
}
​
connect env "web" -> "sessions"

Fields

FieldTakesMeaning
size"small" | "medium" | "large"
default "small"
AWS: cache.t4g.micro, .small, .medium. Google Cloud: 1, 2 or 5 GB, basic tier. Azure: Basic C0, C1, C2. Must be written out.

Any other field is refused (AK204), and the error names the exact type to declare with node for the setting you wanted.

What it becomes

CloudBecomes
AWSAn ElastiCache Redis cluster, one node.
Google CloudA Memorystore for Redis instance, basic tier.
AzureAn Azure Cache for Redis, basic SKU.

Joins the shared network net: all three clouds.

What a connection hands over

An env connection to a cache gives the consumer these variables, each prefixed by the cache's name in upper case — cache "orders" gives ORDERS_…:

CloudVariables
AWS_HOST, _PORT, _URL
Google Cloud_HOST, _PORT, _URL
Azure_HOST, _PORT, and _PASSWORD through the secrets channel

Notes

  • Replicated or clustered tiers are provider settings: declare the cache with node to choose one.