1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
0
Hi You have the possibility to pas routesettings https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-stage.html#cfn-apigatewayv2-stage-routesettings
But SAM will merge that if original api has some
For stagenames there is a possibility to create the stages and your api independently instead of relying on sam function resource
By the way creating your own stage will not prevent sam creating default stage and prod stagenames
Resources:
Myv1Api:
Type: AWS::Serverless::Api
Properties:
StageName: v1
OpenApiVersion: 2.0
Lambdafunction:
Type: AWS::Serverless::Function
Events:
MyApiv1Event:
RestApi: !Ref Myv1APi
This way the defaults will be prevented and you create your v1 stage
respondido há 2 anos
Conteúdo relevante
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há um ano