Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment to AWS using AWS Copilot #811

Merged
merged 15 commits into from
Oct 23, 2024

Conversation

EugeneLightsOn
Copy link
Collaborator

@EugeneLightsOn EugeneLightsOn commented Oct 14, 2024

  • AWS deployment using Copilot

AI Description

This PR introduces a new script that deploys Cohere's Toolkit to AWS using AWS Copilot. The script creates a new application, environment, and services in AWS Copilot, leveraging containerised DB services for the database. Users can adjust the deployment to use RDS if needed, following the AWS Copilot documentation.

The PR also includes Dockerfiles for various services, such as aws-api.Dockerfile, aws-db.Dockerfile, aws-fe.Dockerfile, aws-nginx.Dockerfile, and aws-terrarium.Dockerfile. These Dockerfiles define the base images, environment variables, and build instructions for each service.

Additionally, the PR adds manifest files for each service, specifying configuration details like the Docker build arguments, exposed ports, CPU and memory allocations, and environment variables.

The following changes are made:

  • A new script is added to deploy Cohere's Toolkit to AWS using AWS Copilot.
  • Dockerfiles are introduced for various services, including aws-api.Dockerfile, aws-db.Dockerfile, aws-fe.Dockerfile, aws-nginx.Dockerfile, and aws-terrarium.Dockerfile.
  • Manifest files are added for each service, providing configuration details.
  • The src/backend/alembic/env.py and src/backend/database_models/database.py files are updated to handle database connections when deployed to AWS ECS.

@codecov-commenter
Copy link

codecov-commenter commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.75%. Comparing base (ea4a660) to head (4a63cb4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #811   +/-   ##
=======================================
  Coverage   79.75%   79.75%           
=======================================
  Files         244      244           
  Lines       10498    10498           
=======================================
  Hits         8373     8373           
  Misses       2125     2125           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/backend/alembic/env.py Outdated Show resolved Hide resolved
src/backend/alembic/env.py Outdated Show resolved Hide resolved
@EugeneLightsOn EugeneLightsOn added this pull request to the merge queue Oct 23, 2024
Merged via the queue into main with commit 08af2ff Oct 23, 2024
6 checks passed
@EugeneLightsOn EugeneLightsOn deleted the eugene/TLK-1507_AWS_deployment branch October 23, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants