Friends microservice for Stonks! project.
- Create free tier eligible EC2 instance with OS set to Ubuntu 20.04. Leave the other setup as default
- Setup the neo4j within it following this link
- After setting up to listen to 0.0.0.0, run
sudo systemctl restart neo4j.service
- Create security group that open neo4j port to public (later on we should change it depending on our VPC / EC2 instance)
- Add it to the EC2 instance
- Get the EC2 public url for beanstalk
- git clone
cd FriendsService
- Create
.ebextensions/environment.config
following.ebextensions/environment.config.example
format. Change the content accordingly. zip -r ../FriendsService.zip . -x ".DS_Store" -x "__MACOSX"
- Open amazon console -> beanstalk -> create new environment
- Follow this setup
- Create environment
- notes:
- https://docs.aws.amazon.com/lambda/latest/dg/python-package.html#python-package-create-package-with-dependency
- Important! dont forget to add SNS permission to any services using it.