You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SAM will generate an API Gateway Stage and API Gateway Deployment for every AWS::Serverless::Api resource.
SAM regenerates Deployment and Stage resources after updating a swagger definition. It usually works well.
However, when I use !Ref to reference a parameter in swagger definition, AWS::Serverless::Api doesn't generate Deployment and Stage resources again after updating the parameter only.
For example, the following !Ref ParamValue and updating ParamValue, the change doesn't re-generate Deployment and Stage.
We may confuse there are the difference between updating parameters and editing swagger definition.
Personally, I think it is good to handle updating referenced parameters can also update Deployment and Stage resources.
Or, I think it is also good to check Metadata attribute of AWS::Serverless::Api because customer can forcefully update the resource like other CloudFormation resources described in the following page.
Description:
When AWS::Serverless::Api is used, AWS::ApiGateway::Deployment, AWS::ApiGateway::Stage are generated as described below.
SAM regenerates Deployment and Stage resources after updating a swagger definition. It usually works well.
However, when I use !Ref to reference a parameter in swagger definition, AWS::Serverless::Api doesn't generate Deployment and Stage resources again after updating the parameter only.
For example, the following !Ref ParamValue and updating ParamValue, the change doesn't re-generate Deployment and Stage.
We may confuse there are the difference between updating parameters and editing swagger definition.
Personally, I think it is good to handle updating referenced parameters can also update Deployment and Stage resources.
Or, I think it is also good to check Metadata attribute of AWS::Serverless::Api because customer can forcefully update the resource like other CloudFormation resources described in the following page.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-no-updates-to-perform
Please let me know if you have any questions.
The text was updated successfully, but these errors were encountered: