hopefully a quick question for the masters here :c...
# help
j
hopefully a quick question for the masters here 🤞 • I use Lambda Alias because I think it’s required for AutoScaling Policy • When I deploy updates, I’m getting a failure
Copy code
uat-polls-api-Api | UPDATE_FAILED | AWS::Lambda::Alias | LiveAliasApi372137E3F Replacement type updates not supported on stack with disable-rollback.
First question, why is disable-rollback on? SST docs say the default is to have rollback enabled Second question, why is there a replacement type update if my code didn’t change? AWS Docs say alias is only replaced if the function name or alias name change which they are not
f
Hey @Jeff Hanna
First question, why is disable-rollback on? SST docs say the default is to have rollback enabled
Which version of SST are u on? I think a few of the older releases had rollback default to disabled. We then changed it to enabled by default.
Second question, why is there a replacement type update if my code didn’t change?
Did this happen after updating the SST version? You can run
sst diff
to see the changeset prior to running
sst deploy
.
j
ah, I’m on an older version 0.51.1 it was on that version when I inherited the codebase and I’ve been too afraid to take on the task of upgrading (mostly worried about CDK rather than SST)
it was not after updating SST version. I’ll try disabling rollback at least to get around it for now and keep digging on why the alias is being recreated
f
Ah I see. Let me know how it goes.