1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans