How can I publish an application containing an AWS::Serverless::Function resource with a FunctionUrlConfig property?

0

I have a SAM template with an AWS::Serverless::Function resource that has a FunctionUrlConfig property. It builds and deploys just fine using the SAM CLI, so the transform clearly works. But when I try to publish it to the Serverless Application Repository (either with sam publish or aws serverlessrepo create-application or via the AWS Serverless Application Repository Console), I get the following error:

Invalid Serverless Application Specification document. Number of errors found: 1. Errors: Resource with id [IiifFunction] is invalid. property FunctionUrlConfig not defined for resource of type AWS::Serverless::Function

It seems like the Serverless Application Repository API simply isn't using an up-to-date schema to validate the template. Since FunctionUrlConfig is part of the documented AWS::Serverless::Function model, it seems like the app repository should accept it. Is there anything I can do to try to get past this? Or do I just have to wait until someone at AWS updates the API's template validator with the latest version of the model?

1 個回答
0
已接受的答案

I've found an answer to my own question. It turns out that my suspicion was correct and that the latest version of the SAM code simply hasn't been deployed to SAR yet.

mbklein
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南