1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 3 anni fa