Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.02 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.02 KB

Deploying the API to AWS/GCP with Terraform

The server docker image URI to load-test: public.ecr.aws/h1c6y7g8/chinese-translation-api:latest

Getting Started

Make sure you have terraform, gcloud, and aws already installed and configured.

  • For gcloud, make sure to have already run gcloud init
  • For aws, make sure to have already run aws init

AWS Only

  • Feel free to change the key_name in variables.tf to the correct SSH key name that you want to ssh with.

Deploy with Terraform:

# cd into aws for AWS ec2
cd aws
# OR cd into gce for GCP gce
cd gce

terraform init
terraform plan

# For quantized
terraform apply -var use_quantized=1
# For regular
terraform apply

Clean up with:

terraform destroy

Misc. Notes

AWS

  • The startup script logs located @ /var/log/cloud-init-output.log

GCE