Skip to content

Jagbai/HomeOfficePOCRepo

Repository files navigation

HomeOfficePOCRepo

This repository serves to store both lambda functions used in the netco AWS POC as well as instructions to help set up the AWS environment properly to use all of the services

es_aws_comprhend_architecture-1024x576

The Architecture used for this project is similar to that of the architecture above by "https://www.skedler.com/blog/combine-text-analytics-search-aws-comprehend-elasticsearch-6-0/" but with the main differences being that the code has been amended for usage within lambda functions allowing it to be invoked through triggers instead of manual execution

Requirements

  1. 2 Lambda functions
  2. 1 S3 bucket
  3. 1 Elasticsearch domain
  4. 1 SQS Queue
  5. 1 CloudWatch Events (daily trigger)
  6. A few IAM role tweaks
  7. Patience

Setup Steps

  1. Set up an SQS Queue and an S3 bucket with both versioning, as well as events and link the events to the SQS queue that you set up
  2. Set up an Elasticsearch domain, within the domain go to Rule mappings and add your second Lambda functions ARN to the "all access" users when you make it
  3. Set up the first Lambda function using Lambdafunction1 code and attach a cloudevent to trigger it daily, weekly, etc. Within the lambda function change the bucket name from "homeofficebucket" to whatever you s3 bucket name is and change the lambda function arn to whatever your arn is for your second lambda function. Add IAM roles for all the services used as a safety precaution
  4. Set up the second lambda function mentioned in the instructions beforehand using Lambdafunction2 code. Add IAM roles for all the services used as a safety precaution .Change host to your elasticsearch endpoint, change bucketname and change SQS queue name to yours.

Troubleshooting

Its highly likely that this doesn't work first time probably due to my lack of experience in writing read-me's so if any issues occur feel free to message me, they are most likely to do with security issues or incorrect parameters.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages