Api Gateway Deployment not updated when AutoPublishAlias is changed #1547
Labels
area/intrinsics
Ref, If, Sub, GetAtt, ...
stage/bug-repro
The issue/bug needs to be reproduced
type/bug
Description:
When changing the value of
AutoPublishAlias
on a function resource, the new alias was created, the old alias deleted, and the associated API Gateway resources were updated. However, a new deployment was not created, leaving the API Gateway stage pointed at the previous function alias.This seems to be only a problem when using inline swagger.
Steps to reproduce the issue:
AutoPublishAlias
with the valuev1
to the function resource, and change the reference in the swagger to${MyLambdaFunction.Alias}
.AutoPublishAlias
property tov2
.Observed result:
The created changeset contains the following:
AWS::ApiGateway::RestApi
resourceAWS::Lambda::Permission
resourceAWS::Lambda::Alias
resourceAWS::Lambda::Alias
resource.Expected result:
A changeset that also creates a new deployment resource and updates the stage.
The text was updated successfully, but these errors were encountered: