cds-snc / covid-alert-server

Exposure Notification: Diagnosis Server implementation / Notification d’exposition : Mise en œuvre du serveur de diagnostic
Apache License 2.0
298 stars 31 forks source link

feat(submission) Lambda service from collecting JSON from REST payloa… #414

Closed tpjods closed 3 years ago

tpjods commented 3 years ago

simple micro-service to collect data in JSON format and save it as a unique object in to S3. This is a MVP solution that will accept any JSON file. The service will create a UUID for each new object. close #407 Implement Microservices for collecting metrics.

This is a basic data collector.

Requires 2 environment variables. "dataBucket" <-- The name of the bucket you are saving to "fileLoca" <-- The folder in the bucket you are saving to

It also requires an inline policy to be added to the lambda function providing putObject permissions on the bucket. If this is an encrypted bucket the KMS encrypt policy is also required.

CalvinRodo commented 3 years ago

Closing in favour of https://github.com/cds-snc/covid-alert-serverless/pull/2