Skip to content

Add support for multiple configuration files #30

@ShaunParsons

Description

@ShaunParsons

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)}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions