-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renaming a Serverless::Function used by an Api Gateway does not deploy the Gateway #634
Comments
We're running in the same issue. Renaming functions (without a code change) results in permission errors when invoking functions. |
You should be able to change the logical resource id instead of setting |
Closed in favor of #660 |
I'm facing the same issue here, but I need my Parameters:
Stage:
Type: String
Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Join [ "", [ "MyFunction-", !Ref Stage]] #660 could be an option in the future, but is there a way to achieve that for now? |
@eliottparis Sorry you're experiencing this. Reopening this issue since there's a more targeted change we could make to make |
Actually, it looks like a draft PR had been put up to make this change, but wasn't completed. #1134 |
Description:
Only renaming (no code change) a Serverless::Function using a FunctionName property does not trigger an Api Gateway stage deploy and the API Gateway stage still points to the previous lambda, which in that case does not exist anymore, generating an internal server error.
Manually triggering an API Gateway deploy does solve the problem, but according to me that should be done automatically when the FunctionName changes.
Steps to reproduce the issue:
Observed result:
Expected result:
The text was updated successfully, but these errors were encountered: