Hi,
Im using cdk to to create a stack with a redis cluster
const subnets = vpc.privateSubnets.map(subnet => subnet.subnetId);
const subnetGroups = new CfnSubnetGroup(
this,
'redisSubnets',
{
description: 'redis-subnets-${environmentName}',
subnetIds: subnets
}
);
new RedisLogs(
this,
'redisClusterLogs',
environmentName
);
const logsDeliveryConfiguration: CfnCacheCluster.LogDeliveryConfigurationRequestProperty = {
logFormat: 'json',
logType: 'slow-log',
destinationDetails: {
cloudWatchLogsDetails: {
logGroup: `/redis/${environmentName}`
}
},
destinationType: 'cloudwatch-logs'
};
const clusterProps: CfnCacheClusterProps = {
cacheNodeType: 'cache.t3.micro',
engine: 'redis',
numCacheNodes: 1,
autoMinorVersionUpgrade: true,
vpcSecurityGroupIds: [securityGroup.securityGroupId],
cacheSubnetGroupName: subnetGroups.ref,
clusterName: `cluster-${environmentName}`,
logDeliveryConfigurations: [logsDeliveryConfiguration],
engineVersion: "6.2"
};
this.redisCluster = new CfnCacheCluster(
this,
'redis-cluster',
clusterProps
);
this.redisCluster.addDependsOn(subnetGroups)
cloudformation fails with this error into resource redisSubnets:
Resource handler returned message: "No modifications were requested. (Service: ElastiCache, Status Code: 400, Request ID: xxxxxxxx)" (RequestToken: xxxxxxx, HandlerErrorCode: GeneralServiceException)
Im using the same code for develop, certification environments, only in test environment causes this error
This stack is in a bigger stack with several nested stacks like ecs, rds and another services, curiously, redis stack not have any changes