I have one serverless app with existing apiGateway ( generated by serverless framework).
Now I want create others few sls app. All applications should use existing apiGateway.
I want create new repo with api gateway resources configured but I can’t link it to existing api gateway, framework always create new api gateway. Can I define AWS::ApiGateway::RestApi
Name
for existing api-gateway ?
Current code:
resources:
Resources:
MyApiGateway:
Type: AWS::ApiGateway::RestApi
Properties:
Name: "${opt:stage, self:provider.stage}-gateway"
Outputs:
apiGatewayRestApiId:
Value:
Ref: MyApiGateway
Export:
Name: MyApiGateway-restApiId
apiGatewayRestApiRootResourceId:
Value:
Fn::GetAtt:
- MyApiGateway
- RootResourceId
Export:
Name: MyApiGateway-rootResourceId