Skip to main content

Amazon ElastiCache ExecModule

Overview​

AwsElastiCacheModule reads provisioned cache inventory through the Amazon ElastiCache control plane. Use cache cluster operations to see the deployments in a region and replication group operations to review how Valkey or Redis OSS clusters are grouped. A workflow can collect that information for an inventory reconciliation, an upgrade review, or an incident handoff.

A cache cluster identifier and a replication group identifier refer to different resources. Choose the operation that matches the identifier you have. The module reads provider configuration and status without connecting to the cache endpoint.

Usage​

  1. Set up an Amazon ElastiCache connection in the Integration Account Console. Verify it and confirm its status is READY.
  2. Add Amazon ElastiCache to a Workflow Studio task and choose the connection under General > Connection.
  3. Select an operation and the AWS region. Supply the exact resource identifier for a lookup.
  4. Check status before evaluating the result. For inventory, continue with nextToken while hasMore is true.

Inputs​

InputTypeRequiredDefaultPurpose
operationstringYes—list_cache_clusters, describe_cache_cluster, list_replication_groups, or describe_replication_group.
regionstringYes—AWS region containing the cache resources.
identifierstringFor exact lookups—Cache cluster ID up to 50 characters or replication group ID up to 40 characters. Begin with a letter and use letters, digits, or single hyphens between characters.
limitintegerNo50Inventory page size from 20 to 100. An exact lookup ignores the editor's default value.
nextTokenstringNo—Opaque continuation token from the preceding inventory page, up to 2,048 printable characters.
standaloneOnlybooleanNofalseUse with list_cache_clusters to return clusters outside replication groups, such as Memcached clusters and standalone Valkey or Redis OSS nodes.

Outputs​

OutputMeaning
status / operationsuccess or error, and the recognized operation when available.
items / countOne inventory page and its item count.
hasMore / nextTokenWhether another page is available and the token for fetching it.
dataSelected fields from the named resource.
requestIdAWS request reference when available.
errorRedacted code, message, retryability, and HTTP status when available.

Cache cluster results can include identifier, state, engine, engineVersion, nodeType, nodeCount, replicationGroupId, atRestEncryptionEnabled, and transitEncryptionEnabled. Replication group results can include identifier, state, engine, nodeType, memberClusterCount, shardCount, clusterEnabled, automaticFailover, multiAz, and both encryption flags. The failover and Multi-AZ fields are AWS status strings. Member and shard counts are omitted when AWS omits their source collections.

A control-plane status of available describes the AWS resource. Use a separate check from the intended client network to determine whether an application can connect and serve requests.

IntegrationAccount Requirements​

Use a verified Amazon ElastiCache connection with account name AWS and status READY. Store the key pair in the protected AWS Access Key ID and AWS Secret Access Key fields. The module signs requests with AWS Signature Version 4. Keep both credentials in the connection and out of workflow inputs.

Allow elasticache:DescribeCacheClusters for cluster operations and elasticache:DescribeReplicationGroups for replication group operations. Scope these read permissions to the resources the workflow must inspect, using the supported action and resource combinations. Amazon ElastiCache IAM actions and resource types

Configuration​

Select the region that contains the resources. The module connects to the standard regional ElastiCache HTTPS endpoint. For a multi-region or multi-account inventory, run one invocation per combination of connection and region.

Operations​

  • list_cache_clusters reads a page of provisioned cache clusters using DescribeCacheClusters.
  • describe_cache_cluster uses the same API with an exact cache cluster identifier.
  • list_replication_groups reads a page of provisioned Valkey and Redis OSS replication groups using DescribeReplicationGroups.
  • describe_replication_group uses the same API with an exact replication group identifier.

Errors and Failure Modes​

  • For VALIDATION_ERROR, check the region, operation, page size, and which inputs apply to that operation.
  • For INTEGRATION_ACCOUNT_ERROR, check that the verified connection is READY with both protected fields populated.
  • For RESOURCE_NOT_FOUND, check the exact identifier, account, and region. For an authorization error such as AWS_ELASTICACHE_HTTP_403, check the IAM policy for the corresponding describe action and resource.
  • For INVALID_PROVIDER_RESPONSE, use the request reference when available to investigate. For NETWORK_ERROR, check outbound connectivity and use bounded backoff when the error marks the failure retryable.

Example​

Look up the replication group that backs a checkout service during an incident.

{
"operation": "describe_replication_group",
"region": "us-west-2",
"identifier": "checkout-cache"
}

A successful lookup might return the following result.

{
"status": "success",
"operation": "describe_replication_group",
"data": {
"identifier": "checkout-cache",
"state": "available",
"memberClusterCount": 2,
"shardCount": 1,
"automaticFailover": "enabled",
"multiAz": "enabled",
"transitEncryptionEnabled": true
}
}

Compare the reported shard count and failover configuration with what the service owner expects. To find the group's cache clusters, use list_cache_clusters in the same region and match each item's replicationGroupId. Use describe_cache_cluster with the chosen cluster identifier to inspect its engine version.

Notes​

  • Each inventory call reads one page. Keep the connection, region, operation, and any standalone filter fixed while following the continuation token. Page size limits follow the ElastiCache API.
  • Keep regional fan-out bounded to reduce throttling. Amazon ElastiCache endpoints and quotas
  • All four operations are read-only and safe to repeat. Use account, region, resource type, and identifier together when reconciling inventory.
  • This module covers provisioned resources. Serverless caches, cache key commands, and infrastructure changes are outside its scope.