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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ