stacks: [mobile-notifications]
regions: [eu-west-1]

deployments:
  mobile-notifications-harvester-cfn:
    type: cloud-formation
    app: harvester
    dependencies:
      - registrations-db-proxy-cfn
      - mobile-notifications-workers-cfn
    parameters:
      templatePath: harvester-cfn.yaml
  mobile-notifications-workers-cfn:
    type: cloud-formation
    app: n10n-workers
    parameters:
      prependStackToCloudFormationStackName: false
      cloudFormationStackName: mobile-notifications-cdk-workers
      templateStagePaths:
        CODE: SenderWorkerStack-CODE.template.json
        PROD: SenderWorkerStack-PROD.template.json
  mobile-notifications-topic-counter-cfn:
    type: cloud-formation
    app: topic-counter
    dependencies:
      - registrations-db-proxy-cfn
    parameters:
      prependStackToCloudFormationStackName: false
      cloudFormationStackName: topic-counter-cfn
      templatePath: topic-counter-cfn.yaml
  mobile-notifications-registration-cleaning-worker-cfn:
    type: cloud-formation
    app: registration-cleaning-worker
    dependencies:
      - registrations-db-proxy-cfn
    parameters:
      prependStackToCloudFormationStackName: false
      cloudFormationStackName: registration-cleaning-worker-cfn
      templatePath: registration-cleaning-worker-cfn.yaml
  mobile-notifications-expired-registration-cleaner-cfn:
    type: cloud-formation
    app: expired-registration-cleaner
    dependencies:
      - registrations-db-proxy-cfn
    parameters:
      prependStackToCloudFormationStackName: false
      cloudFormationStackName: expired-registration-cleaner-cfn
      templatePath: expired-registration-cleaner-cfn.yaml
  registrations-db-proxy-cfn:
    type: cloud-formation
    app: registrations-db-proxy
    parameters:
      prependStackToCloudFormationStackName: false
      templateStagePaths:
        CODE: RegistrationsDbProxy-CODE.template.json
        PROD: RegistrationsDbProxy-PROD.template.json
