Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
Fixing ElastiCache command
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaswittig committed Sep 14, 2023
1 parent dcab547 commit 5823d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions marbot-elasticache-memcached.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -237,7 +237,7 @@ Resources:
}
};
const describe = (cacheClusterId, cb) => {
elasticache.send(new DescribeCacheClusterCommand({
elasticache.send(new DescribeCacheClustersCommand({
CacheClusterId: cacheClusterId,
}), function(err, data) {
if (err) {
Expand Down

0 comments on commit 5823d3e

Please sign in to comment.