stacks:
  - support
regions:
  - eu-west-1
allowedStages:
  - CODE
  - PROD
deployments:
  cfn:
    type: cloud-formation
    app: invoicing-api
    parameters:
      templatePath: cfn.yaml
  invoicing-api:
    type: aws-lambda
    parameters:
      bucket: membership-dist
      fileName: invoicing-api.jar
      prefixStack: false
      functionNames:
        - invoicing-api-refund-
        - invoicing-api-invoices-
        - invoicing-api-pdf-
        - invoicing-api-nextinvoicedate-
        - invoicing-api-preview-
        - invoicing-api-refund-erroneous-payment-
    dependencies: [cfn]
