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.

1 Answer
2
Accepted Answer

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
EXPERT
answered 9 months ago
  • 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.

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