From 5823d3e2efbb7bf8056c1d36017f581b61788df5 Mon Sep 17 00:00:00 2001 From: Andreas Wittig Date: Thu, 14 Sep 2023 10:01:25 +0200 Subject: [PATCH] Fixing ElastiCache command --- marbot-elasticache-memcached.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/marbot-elasticache-memcached.yml b/marbot-elasticache-memcached.yml index b50e4b2..af7c3df 100644 --- a/marbot-elasticache-memcached.yml +++ b/marbot-elasticache-memcached.yml @@ -219,7 +219,7 @@ Resources: ZipFile: | 'use strict'; const response = require('cfn-response'); - const { ElastiCacheClient, DescribeCacheClusterCommand, ModifyCacheClusterCommand } = require('@aws-sdk/client-elasticache'); + const { ElastiCacheClient, DescribeCacheClustersCommand, ModifyCacheClusterCommand } = require('@aws-sdk/client-elasticache'); const elasticache = new ElastiCacheClient({apiVersion: '2015-02-02'}); exports.handler = (event, context, cb) => { console.log(JSON.stringify(event)); @@ -237,7 +237,7 @@ Resources: } }; const describe = (cacheClusterId, cb) => { - elasticache.send(new DescribeCacheClusterCommand({ + elasticache.send(new DescribeCacheClustersCommand({ CacheClusterId: cacheClusterId, }), function(err, data) { if (err) {