Cloudformation: update stack error Service: ElastiCache, Status Code: 400

0

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

2개 답변
0

Hello,

Greetings of the day!! Thank you for contacting AWS.

I understand you are getting the following error "Resource handler returned message: "No modifications were requested." while creating a stack with Redis cluster via CDK and though the code works well for production environment, it is failing for the test environment where no changes were made to the Redis stack.

To answer your question, we require details that are non-public information. Please open a support case with AWS using the following link https://console.aws.amazon.com/support/home#/case/create

Thank you and have a nice day!!

AWS
지원 엔지니어
Aditi_B
답변함 일 년 전
0

I had this when I changed subnets in my VPC. I have added new ACL to make my subnets private, so I had to change from Enter image description here

capaj
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠