jinad-aws
jina-ai/jinad-aws/jina
Module for deploying JinaD on AWS
Usage: ``hcl module "jinad" { source = "jina-ai/jinad-aws/jina" instances = { encoder: { type: "c5.4xlarge" disk = { type = "gp2" size = 20 } pip: [ "tensorflow>=2.0", "transformers>=2.6.0" ] command: "sudo apt install -y jq" } indexer: { type: "i3.2xlarge" disk = { type = "gp2" size = 20 } pip: [ "faiss-cpu==1.6.5", "redis==3.5.3" ] command: "sudo apt-get install -y redis-server && sudo redis-server --bind 0.0.0.0 --port 6379:6379 --daemonize yes" } } availability_zone = "us-east-1a" vpc_cidr = "34.121.0.0/24" subnet_cidr = "34.121.0.0/28" additional_tags = { "my_tag_key" = "my_tag_value" } } output "jinad_ips" { description = "IP of JinaD" value = module.jinad.instance_ips } ` Store the outputs from jinad_ips & Use it with jina `python from jina import Flow f = (Flow() .add(uses='MyAweso
| Name | Type | Description | Default |
|---|---|---|---|
| instances | map(any) | Describe instance configuration here. | {
"instance1": {
"command": "sudo |
| vpc_cidr | string | Mention the CIDR of the VPC | "10.113.0.0/16" |
| subnet_cidr | string | Mention the CIDR of the subnet | "10.113.0.0/16" |
| additional_tags | map(string) | Additional resource tags | {} |
| region | string | Mention the Region where JinaD resources are going to get created | "us-east-1" |
| availability_zone | string | Mention the availability_zone where JinaD resources are going to get created | "us-east-1a" |
instance_ips — Elastic IPs of JinaD instances created as a map
instance_keys — Private key of JinaD instances for debugging