stacks: [multimedia]
regions: [eu-west-1]
templates:
  lambda:
    type: aws-lambda
    parameters:
      bucket: gnm-multimedia-rr-deployables
      prefixStack: false

deployments:
  archivehunter-webapp:
    type: autoscaling
    parameters:
      bucket: gnm-multimedia-rr-deployables
    dependencies: [ multimedia-ami-update ]

  archivehunter-input-lambda:
    template: lambda
    parameters:
      functionNames: [archivehunter-input-]
      fileName: inputLambda.jar

  archivehunter-autodowning-lambda:
    template: lambda
    parameters:
      functionNames: [archivehunter-autodown-]
      fileName: autoDowningLambda.jar

  multimedia-ami-update:
    type: ami-cloudformation-parameter
    app: archivehunter
    parameters:
      amiParameter: AmiId
      amiTags:
        BuiltBy: amigo
        Recipe: multimedia-tools-focal-java11-arm
