Trying to do so leads me to another problem when deploying the stack using SAM deploy:
Auth works only with inline Swagger specified in 'DefinitionBody' property.
I guess features like "Authentication" or "Cors enable" requires CloudFormation's transform macro to access the OpenAPI/Swagger configuration in order to modify it. Hence this OpenAPI/Swagger declaration must be part of the template given to CloudFormation and cannot be provided as a separated file from S3 anyway.
How can I publish an application containing an AWS::Serverless::Function resource with a FunctionUrlConfig property?Accepted Answerasked 3 months ago
AWS SAM: set the authorization cache TTL in the resource template (AWS::Serverless::Api)asked 6 months ago
How to define IAM::Policy in SAM templateasked a year ago
Update Existing Lambda Function using SAM.Accepted Answerasked 4 months ago
How to create an API gateway with multiple stages in AWS Serverless Application Model (SAM)?
How to set CloudWatch logs retention policy for Lambda in AWS Serverless Application Model (SAM)?Accepted Answer
SAM deploy error - Template format error: Unrecognized resource types: [AWS::Athena::NamedQuery]asked 6 months ago
HttpApi timeout setting missing from SAM cloudformation templateAccepted Answerasked 3 years ago
How to create Lambda using AWS Serverless Application Model (SAM) without an AWS managed IAM policy?
AWS SAM: The REST API doesn't contain any methodsasked 4 years ago