Closed
Description
I have a template like this:
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Resources:
Api:
Properties:
StageName: dv01
DefinitionUri: api_spec_SAM.json
Type: AWS::Serverless::Api
After package and deploy with the cli, it creates an API with two stages named "Stage" and "dv01". In reality, I do not want to create either stages. The StageName property is "required". Not sure why. My intention is to create a separate set of templates to create the stages, deployments, lambda function versions etc.
The reason I need separation is because we have multiple code pipelines that are owned by different people (dev, build teams). I would like these templates to live in separate git repos.
Is there a way to create an API without any stages?
Else, the work around is to simply ignore this one default stage created via SAM. Thanks!