lfp-error-reporter

command module
v0.0.0-...-de0bd9f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 5 Imported by: 0

README

lfp-error-reporter

A lambda to report errors from the lfp service when communicating with e5. This service collates failed lfp payments from the payable resources collection and writes it to CSV's on an SFTP server.

The Lambda function

This API runs on AWS Lambda. Release and deployment of the lambda is similar to that of other trunk based services. After performing relevant unit tests, a github release task is run and the zip is uploaded to the S3 release bucket. Terraform is then run to deploy the new version.

Terraform deployment

All dependent AWS resources are provisioned by Terraform and deployed from a concourse pipeline. The pipeline is capable of deploying everything so manual deployment should not be necessary. For instructions on Terraform provisioning, see here.

Environment Variables

Environment variables required to execute the lambda:

Name Description Examples
MONGODB_LFP_ERR_REP_TRANSACTIONS_COLLECTION The name of the collection within the error reporting database from which to fetch lfp data. 'payable_resources'
MONGODB_LFP_ERR_REP_DATABASE The name of the database containing the collection from which to fetch lfp data. 'late_filing_penalties'
MONGODB_URL The Mongo database URL. 'mongodb://<mongo_host>:27017
SFTP_SERVER The SFTP server host name.
SFTP_PORT The port over which to connect to the SFTP server. '22'
SFTP_USERNAME The username of the SFTP server credentials.
SFTP_PASSWORD The password of the SFTP server credentials.
SFTP_FILE_PATH The file path, relative to the root of the SFTP server, to which to upload CSV files. 'uploadPath' (will result in CV's uploaded to directory: ~/uploadPath)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package config defines the environment variables and flags
Package config defines the environment variables and flags
Package dao provides access to the database.
Package dao provides access to the database.
Package filetransfer contains the client that communicates with the Finance FTP server
Package filetransfer contains the client that communicates with the Finance FTP server
Package lambda contains the core lambda executable code
Package lambda contains the core lambda executable code
Package models contains the required data structures.
Package models contains the required data structures.
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL