Bug: Lambda Snapstart arm to x86 Migration issue

0

Hello Everyone, Currently I am running an Spring boot application with JAVA 8 and arm architecture. I have migrated to JAVA 11 and x86 architecture for enabling snapstart feature. While updating the Could formation I am struck with an error which says "arm64 is not supported for SnapStart enabled functions", even tough I have moved from arm to x86 in the could formation template.

**Note: **: Creating a new stack is working but while updating the existing stack which has arm is throwing the above error.

Please advice on solving this issue, I would be needing the same stack to get updated since downtime is not allowed.

profile picture
AGS
已提問 10 個月前檢視次數 585 次
1 個回答
2
已接受的答案

Hi

Are you trying to change to the architecture to x86_64 at the same time as enabling SnapStart? Because that could cause your problem as the function has not migrated to x86_64 yet. Have you tried first migrating to x86_64 fully and then turning on SnapStart?

profile picture
專家
已回答 10 個月前
  • Was looking around for this migration, but from Cloud formation template there wasn't any solutions for doing that as a migration activity. Hence in the snapstart enabled lambda I have given the architecture of x86 and expected it to migrate it from arm while updating. Could you please suggest some ways of doing this without any downtime.

  • The above answer is working, but still it would require more than one deployment (one with x86 and then one with snapstart) looking for ways to make it in single deployment

  • Hi AGS I don't think it's possible to do that change in one deployment, not reliable anyway. The architecture must first change before you turn on SnapStart, and there is no way to tell CloudFormation to do the architecture update then the SnapStart update. CloudFormation will try and do the updates at the same time.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南