Serverless supports loading from multiple configuration files: https://www.serverless.com/framework/docs/providers/aws/guide/variables#multiple-configuration-files
Example:
resources:
- Resources:
ApiGatewayRestApi:
Type: AWS::ApiGateway::RestApi
- ${file(resources/first-cf-resources.yml)}
- ${file(resources/second-cf-resources.yml)}
- Outputs:
CognitoUserPoolId:
Value:
Ref: CognitoUserPool
However, this does not work with additional stacks. The following config will cause stack to be an array here.
additionalStacks:
permanent:
- ${file(./serverless/custom/database.yml)}
- ${file(./serverless/custom/network.yml)}
Serverless supports loading from multiple configuration files: https://www.serverless.com/framework/docs/providers/aws/guide/variables#multiple-configuration-files
Example:
However, this does not work with additional stacks. The following config will cause
stackto be an array here.