Trying to upgrade Serverles Image Handler and getting error

0

Hey,

Currently we have Version v6.2.1 deployed and trying to upgrade it to v6.2.4. When we run the upgrade using this https://docs.aws.amazon.com/solutions/latest/serverless-image-handler/update-the-solution.html

We received following error in cloudformatation events tab

2023-12-22 10:00:28 UTC-0500 AppRegistry968496A3 UPDATE_FAILED Likely root cause Resource handler returned message: "Application name update feature has been deprecated. (Service: ServiceCatalogAppRegistry, Status Code: 400, Request ID: 98e2b8d1-faf4-4480-b765-10c263f42174)" (RequestToken: 65adb8e8-5db4-de52-e50b-08eaac3c3a40, HandlerErrorCode: InvalidRequest)

We couldn't understand what's the issue here and how to solve it.

Any help will be helpful.

Thanks, Jatin

1 Answer
0

Hello Jatin,

I have downloaded the latest version v6.2.4 template from document[1] and followed the document [2] for updating my existing Serverless Image Handler Application to v6.2.4. However, I have encountered the same error when the stack was updating.

====

Resource handler returned message: "Application name update feature has been deprecated. (Service: ServiceCatalogAppRegistry, Status Code: 400, Request ID: 83255175-9092-4593-b9e9-67dedcea7c1f)" (RequestToken: dd5f47bf-c90c-1f76-f15c-50a8d4493998, HandlerErrorCode: InvalidRequest)

====

Based on the error, the latest template is trying to update the ServiceCatalog AppRegistry application "Name" property under the resource "AppRegistry968496A3". However, this feature of updating the name of the AppRegistry application has been deprecated and the Name of the AppRegistry is non-editable.

As a workaround, you can hardcode this "Name" property to the same Name which is created for the Appregistry application in the earlier version. You can refer this under the stack resources and match it with the existing Applications in ServiceCatalog AppRegistry. After updating the stack with this hardcoded Name in the template, the stack will deploy successfully without any errors.

I have tested this at my end and the stack was updated successfully.

You can also refer this github issue which discusses about the same error[3].

Hope this helps! Thank you:)

References :

[1] Deploy the solution - Launch Stack - https://docs.aws.amazon.com/solutions/latest/serverless-image-handler/launch-stack.html

[2] Update the solution - https://docs.aws.amazon.com/solutions/latest/serverless-image-handler/update-the-solution.html

[3] Update from 6.2.1 to 6.2.3 failed - https://github.com/aws-solutions/serverless-image-handler/issues/514

AWS
answered 4 months ago
profile picture
EXPERT
reviewed 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions