Ingest a CSV file into ElasticSearch and expose an API Gateway endpoint for allowing users to search based on certain fields.
- AWS ElasticSearch Service (ElasticSearch v6.7.0) : Managed search engine service
- AWS Api Gateway
- AWS Lambda
- AWS EC2
- API Gateway
- Use
infra/build.sh
to setup AWS environment, you'd need AWS credentials of a user with cloudformation permissions. - The script should setup everything except for API Gateway and Lambda for test
- For lambda:
mvn clean package
from rootsam package --template-file template.yaml --output-template-file packaged.yaml --s3-bucket BUCKET_NAME
aws cloudformation deploy --template-file packaged.yaml --stack-name test-2 --capabilities CAPABILITY_IAM --region us-west-2
mvn clean package
from rootjava -jar simulator/target/simulator-1.0.0.jar