Skip to content

ministryofjustice/analytical-platform-ingestion-transfer

Repository files navigation

Analytical Platform Ingestion Transfer

repo standards badge

This image is used in the Analytical Platform Ingestion service. It is deployed as an AWS Lambda function within the analytical-platform-ingestion account.

Features

The image:

  • copies the new file in the analytical-platform-processed bucket to the destination bucket in another AWS account.
  • deletes the original file from analytical-platform-processed

Running Locally

Build

docker build --platform linux/amd64 --file Dockerfile --tag analytical-platform.service.justice.gov.uk/ingestion-transfer:local .

Run

docker run -it --rm \
  --platform linux/amd64 \
  --hostname ingestion-transfer \
  --name analytical-platform-ingestion-transfer \
  analytical-platform.service.justice.gov.uk/ingestion-transfer:local

Versions

Lambda Image

Generally Dependabot does this, but the following command will return the digest:

docker pull --platform linux/amd64 public.ecr.aws/lambda/python:3.12
docker image inspect --format='{{index .RepoDigests 0}}' public.ecr.aws/lambda/python:3.12