allowedStages:
  - CODE
  - PROD
deployments:
  lambda-upload-eu-west-1-investigations-transcription-service:
    type: aws-lambda
    stacks:
      - investigations
    regions:
      - eu-west-1
    app: transcription-service-api
    contentDirectory: transcription-service-api
    parameters:
      bucketSsmLookup: true
      lookupByTags: true
      fileName: api.zip
    actions:
      - uploadLambda
  cfn-eu-west-1-investigations-transcription-service:
    type: cloud-formation
    regions:
      - eu-west-1
    stacks:
      - investigations
    app: transcription-service
    contentDirectory: cdk.out
    parameters:
      templateStagePaths:
        CODE: TranscriptionService-CODE.template.json
        PROD: TranscriptionService-PROD.template.json
      amiTags:
        Recipe: investigations-transcription-service
        AmigoStage: PROD
      amiParameter: AMITranscriptionserviceworker
      amiEncrypted: investigations
    dependencies:
      - lambda-upload-eu-west-1-investigations-transcription-service
      - lambda-upload-eu-west-1-investigations-transcription-service-output-handler
      - lambda-upload-eu-west-1-investigations-transcription-service-media-export
      - lambda-upload-eu-west-1-investigations-transcription-service-worker-capacity-manager
  lambda-update-eu-west-1-investigations-transcription-service:
    type: aws-lambda
    stacks:
      - investigations
    regions:
      - eu-west-1
    app: transcription-service-api
    contentDirectory: transcription-service-api
    parameters:
      bucketSsmLookup: true
      lookupByTags: true
      fileName: api.zip
    actions:
      - updateLambda
    dependencies:
      - cfn-eu-west-1-investigations-transcription-service
  transcription-service-worker:
    type: aws-s3
    stacks:
      - investigations
    regions:
      - eu-west-1
    app: transcription-service
    contentDirectory: transcription-service-worker
    parameters:
      bucketSsmLookup: true
      cacheControl: public, max-age=60
      publicReadAcl: false
    dependencies:
      - cfn-eu-west-1-investigations-transcription-service
  lambda-upload-eu-west-1-investigations-transcription-service-output-handler:
    type: aws-lambda
    stacks:
      - investigations
    regions:
      - eu-west-1
    app: transcription-service-output-handler
    contentDirectory: transcription-service-output-handler
    parameters:
      bucketSsmLookup: true
      lookupByTags: true
      fileName: output-handler.zip
    actions:
      - uploadLambda
  lambda-output-handler-eu-west-1-investigations-transcription-service-output-handler:
    type: aws-lambda
    stacks:
      - investigations
    regions:
      - eu-west-1
    app: transcription-service-output-handler
    contentDirectory: transcription-service-output-handler
    parameters:
      bucketSsmLookup: true
      lookupByTags: true
      fileName: output-handler.zip
    actions:
      - updateLambda
    dependencies:
      - cfn-eu-west-1-investigations-transcription-service
  lambda-upload-eu-west-1-investigations-transcription-service-media-export:
    type: aws-lambda
    stacks:
      - investigations
    regions:
      - eu-west-1
    app: transcription-service-media-export
    contentDirectory: transcription-service-media-export
    parameters:
      bucketSsmLookup: true
      lookupByTags: true
      fileName: media-export.zip
    actions:
      - uploadLambda
  lambda-update-eu-west-1-investigations-transcription-service-media-export:
    type: aws-lambda
    stacks:
      - investigations
    regions:
      - eu-west-1
    app: transcription-service-media-export
    contentDirectory: transcription-service-media-export
    parameters:
      bucketSsmLookup: true
      lookupByTags: true
      fileName: media-export.zip
    actions:
      - updateLambda
    dependencies:
      - cfn-eu-west-1-investigations-transcription-service
  lambda-upload-eu-west-1-investigations-transcription-service-worker-capacity-manager:
    type: aws-lambda
    stacks:
      - investigations
    regions:
      - eu-west-1
    app: transcription-service-worker-capacity-manager
    contentDirectory: transcription-service-worker-capacity-manager
    parameters:
      bucketSsmLookup: true
      lookupByTags: true
      fileName: worker-capacity-manager.zip
    actions:
      - uploadLambda
  lambda-update-eu-west-1-investigations-transcription-service-worker-capacity-manager:
    type: aws-lambda
    stacks:
      - investigations
    regions:
      - eu-west-1
    app: transcription-service-worker-capacity-manager
    contentDirectory: transcription-service-worker-capacity-manager
    parameters:
      bucketSsmLookup: true
      lookupByTags: true
      fileName: worker-capacity-manager.zip
    actions:
      - updateLambda
    dependencies:
      - cfn-eu-west-1-investigations-transcription-service
