eks-patterns
EKS cluster patterns and best practices for Terraform. Provides cluster, node group, add-on, and IRSA scaffolds. Use when developing EKS infrastructure.
What this skill does
# EKS Patterns
Terraform patterns for Amazon EKS infrastructure development.
## Before Generating Code
ALWAYS use doc-researcher or Terraform MCP to verify:
- Current terraform-aws-eks module version
- EKS add-on versions
- Kubernetes version compatibility
## Primary Module Reference
Use `terraform-aws-modules/eks/aws` (v20+):
- Registry: https://registry.terraform.io/modules/terraform-aws-modules/eks/aws
- GitHub: https://github.com/terraform-aws-modules/terraform-aws-eks
## Naming Convention
Use `{project}-{environment}-eks` pattern:
```hcl
locals {
cluster_name = "${var.project}-${var.environment}-eks"
}
```
## Complete EKS Cluster
```hcl
module "eks" {
source = "terraform-aws-modules/eks/aws"
version = "~> 20.0"
cluster_name = local.cluster_name
cluster_version = "1.31"
# Networking
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
# Access
cluster_endpoint_public_access = true
cluster_endpoint_private_access = true
enable_cluster_creator_admin_permissions = true
# Logging
cluster_enabled_log_types = ["api", "audit", "authenticator", "controllerManager", "scheduler"]
# Encryption
cluster_encryption_config = {
provider_key_arn = aws_kms_key.eks.arn
resources = ["secrets"]
}
# Managed Node Groups
eks_managed_node_groups = {
general = {
name = "${local.cluster_name}-general"
instance_types = ["m6i.large", "m5.large"]
capacity_type = "ON_DEMAND"
min_size = 2
max_size = 10
desired_size = 3
disk_size = 100
disk_type = "gp3"
labels = {
role = "general"
"node.kubernetes.io/capacity-type" = "on-demand"
}
update_config = {
max_unavailable_percentage = 33
}
}
}
# Add-ons
cluster_addons = {
coredns = {
most_recent = true
configuration_values = jsonencode({
replicaCount = 2
})
}
kube-proxy = {
most_recent = true
}
vpc-cni = {
most_recent = true
before_compute = true
service_account_role_arn = module.vpc_cni_irsa.iam_role_arn
configuration_values = jsonencode({
env = {
ENABLE_PREFIX_DELEGATION = "true"
WARM_PREFIX_TARGET = "1"
}
})
}
aws-ebs-csi-driver = {
most_recent = true
service_account_role_arn = module.ebs_csi_irsa.iam_role_arn
}
}
tags = var.tags
}
```
## Node Group Patterns
### On-Demand with Multiple Instance Types
```hcl
eks_managed_node_groups = {
on_demand = {
name = "${local.cluster_name}-on-demand"
instance_types = ["m6i.large", "m5.large", "m5a.large"]
capacity_type = "ON_DEMAND"
min_size = 2
max_size = 10
desired_size = 3
disk_size = 100
disk_type = "gp3"
labels = {
role = "general"
"node.kubernetes.io/capacity-type" = "on-demand"
}
update_config = {
max_unavailable_percentage = 33
}
}
}
```
### Spot Instances
```hcl
eks_managed_node_groups = {
spot = {
name = "${local.cluster_name}-spot"
instance_types = ["m6i.large", "m5.large", "m5a.large", "m5n.large"]
capacity_type = "SPOT"
min_size = 0
max_size = 20
desired_size = 3
labels = {
role = "spot"
"node.kubernetes.io/capacity-type" = "spot"
}
taints = [{
key = "spot"
value = "true"
effect = "NO_SCHEDULE"
}]
}
}
```
### GPU Node Group
```hcl
eks_managed_node_groups = {
gpu = {
name = "${local.cluster_name}-gpu"
instance_types = ["g4dn.xlarge", "g4dn.2xlarge"]
capacity_type = "ON_DEMAND"
min_size = 0
max_size = 5
desired_size = 0
ami_type = "AL2_x86_64_GPU"
disk_size = 200
labels = {
"nvidia.com/gpu" = "true"
"node.kubernetes.io/capacity-type" = "on-demand"
}
taints = [{
key = "nvidia.com/gpu"
value = "true"
effect = "NO_SCHEDULE"
}]
}
}
```
### ARM/Graviton Instances
```hcl
eks_managed_node_groups = {
graviton = {
name = "${local.cluster_name}-graviton"
instance_types = ["m6g.large", "m6g.xlarge"]
capacity_type = "ON_DEMAND"
min_size = 2
max_size = 10
desired_size = 3
ami_type = "AL2_ARM_64"
labels = {
"kubernetes.io/arch" = "arm64"
"node.kubernetes.io/capacity-type" = "on-demand"
}
}
}
```
## Fargate Profile Pattern
```hcl
fargate_profiles = {
kube_system = {
name = "${local.cluster_name}-kube-system"
selectors = [
{
namespace = "kube-system"
labels = {
k8s-app = "kube-dns"
}
}
]
}
serverless = {
name = "${local.cluster_name}-serverless"
selectors = [
{ namespace = "serverless" },
{
namespace = "batch"
labels = { compute = "fargate" }
}
]
}
}
```
## IRSA Patterns
### VPC CNI IRSA
```hcl
module "vpc_cni_irsa" {
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
version = "~> 5.0"
role_name = "${local.cluster_name}-vpc-cni"
attach_vpc_cni_policy = true
vpc_cni_enable_ipv4 = true
oidc_providers = {
main = {
provider_arn = module.eks.oidc_provider_arn
namespace_service_accounts = ["kube-system:aws-node"]
}
}
tags = var.tags
}
```
### EBS CSI IRSA
```hcl
module "ebs_csi_irsa" {
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
version = "~> 5.0"
role_name = "${local.cluster_name}-ebs-csi"
attach_ebs_csi_policy = true
oidc_providers = {
main = {
provider_arn = module.eks.oidc_provider_arn
namespace_service_accounts = ["kube-system:ebs-csi-controller-sa"]
}
}
tags = var.tags
}
```
### Custom Application IRSA
```hcl
module "app_irsa" {
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
version = "~> 5.0"
role_name = "${local.cluster_name}-app"
oidc_providers = {
main = {
provider_arn = module.eks.oidc_provider_arn
namespace_service_accounts = ["app-namespace:app-service-account"]
}
}
role_policy_arns = {
s3_read = aws_iam_policy.s3_read.arn
sqs_send = aws_iam_policy.sqs_send.arn
}
tags = var.tags
}
```
## Karpenter Pattern
```hcl
module "karpenter" {
source = "terraform-aws-modules/eks/aws//modules/karpenter"
version = "~> 20.0"
cluster_name = module.eks.cluster_name
enable_v1_permissions = true
create_pod_identity_association = true
node_iam_role_use_name_prefix = false
node_iam_role_name = "${local.cluster_name}-karpenter-node"
node_iam_role_additional_policies = {
AmazonSSMManagedInstanceCore = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
}
tags = var.tags
}
# Karpenter Helm release (optional - can be done via GitOps)
resource "helm_release" "karpenter" {
namespace = "karpenter"
create_namespace = true
name = "karpenter"
repository = "oci://public.ecr.aws/karpenter"
chart = "karpenter"
version = "1.0.0"
values = [
yamlencode({
settings = {
clusterName = module.eks.cluster_name
clusterEndpoint = module.eks.cluster_endpoint
interruptionQueue = module.karpenter.queue_name
}
})
]
}
```
## Access Entry Pattern (API Mode)
```hcl
access_entries = {
admin_role = {
principal_arn = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/AdminRole"
policy_associations = {
admin = {
policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy"
access_scope = {
type = "cluster"
}
}
}
}
developer_role = {
princiRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.