stacks:
  - support
regions:
  - eu-west-1
allowedStages:
  - CODE
  - PROD
deployments:
  discount-expiry-notifier-cloudformation:
    type: cloud-formation
    app: discount-expiry-notifier
    parameters:
      templateStagePaths:
        CODE: discount-expiry-notifier-CODE.template.json
        PROD: discount-expiry-notifier-PROD.template.json
  discount-expiry-notifier:
    type: aws-lambda
    parameters:
      fileName: discount-expiry-notifier.zip
      bucketSsmLookup: true
      prefixStack: false
      functionNames:
        - discount-expiry-notifier-get-expiring-discounts-
        - discount-expiry-notifier-filter-records-
        - discount-expiry-notifier-get-sub-status-
        - discount-expiry-notifier-get-old-payment-amount-
        - discount-expiry-notifier-get-new-payment-amount-
        - discount-expiry-notifier-send-email-
        - discount-expiry-notifier-save-results-
        - discount-expiry-notifier-alarm-on-failures-
    dependencies: [discount-expiry-notifier-cloudformation]
