- Home
- Skills
- Giuseppe Trisciuoglio
- Developer Kit
- Aws Cloudformation Elasticache
aws-cloudformation-elasticache_skill
- Python
99
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill giuseppe-trisciuoglio/developer-kit --skill aws-cloudformation-elasticache- SKILL.md34.1 KB
Overview
This skill provides production-ready AWS CloudFormation patterns for provisioning Amazon ElastiCache (Redis and Memcached). It includes templates and reusable building blocks for clusters, replication groups, parameter groups, subnet groups, security, and template sections (Parameters, Mappings, Conditions, Outputs). Use it to create modular, validated, and cross-stack friendly caching infrastructure.
How this skill works
The skill supplies CloudFormation YAML examples and snippets that define ElastiCache resources and surrounding network and parameter constructs. It shows how to declare Parameters (including AWS-specific types), Mappings for region/type data, Conditions for environment variants, and Outputs for cross-stack references. Examples cover standalone Redis clusters, Redis replication groups, and Memcached clusters with parameter groups, subnet groups, security groups, backups, and monitoring hooks.
When to use it
- When you need a new Redis cluster or Memcached cluster deployed via CloudFormation
- When building high-availability Redis using ReplicationGroup with automatic failover
- When creating parameter groups, subnet groups, and VPC-aware cache deployments
- When you want strong template validation using AWS parameter types and constraints
- When designing modular stacks with Outputs and cross-stack references
- When you need repeatable production patterns (backups, monitoring, encryption)
Best practices
- Use AWS::ElastiCache parameter types and AllowedValues to validate inputs in the console
- Group network resources (subnet groups, security groups) and expose only necessary Outputs
- Use Conditions and Mappings to support multiple environments and region-specific values
- Define ParameterGroups for engine tuning and store sensitive values in SSM where appropriate
- Enable automatic backups, CloudWatch metrics, and Multi-AZ/AutomaticFailover for production
- Keep templates modular: export endpoints and IDs for cross-stack composition
Example use cases
- Create a dev Redis cluster with a simple CacheSubnetGroup and one cache node
- Deploy a production Redis ReplicationGroup with Multi-AZ, replicas, and automatic failover
- Provision a Memcached cluster for horizontally scaled session caching
- Define a custom Redis ParameterGroup with maxmemory-policy and timeout adjustments
- Compose a cross-stack architecture where application stacks import the cache endpoint Output
FAQ
Yes — use Parameters (Engine and EngineVersion) and Conditions to branch resource properties for Redis or Memcached in a single modular template.
How do I expose the cache endpoint to application stacks?
Add Outputs for Redis Primary/Reader endpoints or CacheCluster endpoints and export them. Other stacks can import these values using Fn::ImportValue or Export/Import mechanisms.