Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.12 KB

README.md

File metadata and controls

32 lines (27 loc) · 1.12 KB

Empatica challenge 2

Architecture

Architecture

Requirements

Usage

terraform init
terraform apply

Example of POST request

{
	"ID": 10,
	"Name": "Task 10"
}

Considerations

This project is for demonstration purpose only. Some choices have been made for ease and don't comply with security best practices.

  • Terraform uses AWS CLI credentials
  • At the beginning, the database (DynamoDB) used for storing the tasks is empty
  • HTTP Basic auth credentials are passed to the lambda function as environment variables (username: admin - password: secret)
  • No VPC created, therefore Elasticsearch has a public endpoint
  • No access to Elasticsearch from Internet, if want to do that you need to modify the policy allowing your public IP
  • If, in the request, there are more properties than required, they will be ignored
  • If you add an already existing task ID with a different Name, this will be replaced