Skip to content

Solution Upgrade: Upgrading from v2.2.2 causes CloudFormation rollback (CRInitConfig validation errors) #336

@yanapoz

Description

@yanapoz

Describe the bug

Attempting to upgrade the Centralized Logging with OpenSearch AWS Solution from v2.2.2 to a newer version consistently rolls back during the stack update. The failure occurs in the Lambda-backed custom resource CRInitConfig, which throws validation errors for missing fields.

Expected behavior

Upgrade is successful.

Current Behavior

The resource CRCRLambdaDFCBCB5E is in a UPDATE_FAILED state
This AWS::CloudFormation::CustomResource resource is in a UPDATE_FAILED state.

Received response status [FAILED] from custom resource. Message returned: Error: 3 validation errors for OpenSearchDomain domainInfo field required (type=value_error.missing) importMethod field required (type=value_error.missing) resources field required (type=value_error.missing) Logs: /aws/lambda/centralized-logging-stack-v2-CRInitConfig61C535DA-hFDu9QONvkgP at invokeUserFunction (/var/task/framework.js:2:6) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async onEvent (/var/task/framework.js:1:369) at async Runtime.handler (/var/task/cfn-response.js:1:1837) (RequestId: 43a7e065-356b-4316-8981-a536dbd38c9f)

│ Error: waiting for CloudFormation Stack (centralized-logging-stack-v2) update: stack status (UPDATE_ROLLBACK_COMPLETE): Resource update cancelled │ Resource update cancelled │ Resource update cancelled │ Resource update cancelled │ Received response status [FAILED] from custom resource. Message returned: Error: 3 validation errors for OpenSearchDomain │ domainInfo │ field required (type=value_error.missing) │ importMethod │ field required (type=value_error.missing) │ resources │ field required (type=value_error.missing) │ │ Logs: /aws/lambda/centralized-logging-stack-v2-CRInitConfig61C535DA-hFDu9QONvkgP │ │ at invokeUserFunction (/var/task/framework.js:2:6) │ at process.processTicksAndRejections (node:internal/process/task_queues:105:5) │ at async onEvent (/var/task/framework.js:1:369) │ at async Runtime.handler (/var/task/cfn-response.js:1:1837) (RequestId: 43a7e065-356b-4316-8981-a536dbd38c9f)

To Reproduce

CLO Stack is deployed with v2.2.2
Upgrade the Stack using a template version v2.3.0 or higher.

Possible Solution

No response

Additional context

No response

Solution Version

v2.2.2

AWS Region. e.g., us-east-1

us-east-1

Other information / Screenshots

No response

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions