1 Answer
- Newest
- Most votes
- Most comments
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
answered 2 years ago
Relevant content
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago