Metadata-Version: 2.1
Name: deploybot
Version: 0.1.18
Summary: A CLI tool for deploying ECS and Lambda services
Author: Waseem Ahmad
Author-email: waseem_ahmad63@yahoo.com
Requires-Python: >=3.5,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: toml (>=0.10.2,<0.11.0)
Description-Content-Type: text/markdown

# Deploybot

Deploybot is a command-line interface (CLI) tool designed to deploy ECS and Lambda services. It allows users to configure their AWS account and environment, and then build and deploy services with ease.

## Prerequisites

* Python 3.6 or higher
* [Poetry](https://python-poetry.org/) for dependency management
* AWS CLI configured with the necessary credentials

## Installation






1. Clone the repository:

   ```bash
   cd deploybot-cli
   ```
2. Install dependencies using Poetry:

   ```bash
   poetry install
   
   Run all commands in poetry shell run bellow command
   
   poetry shell
   ```

## Configuration

Before using Deploybot, you need to configure it with your AWS account ID, environment, and base path.



1. Run the configure command:

   ```bash
   deploybot configure
   
   ```

   Follow the prompts to enter your AWS account ID, select the environment (staging or production), and provide the base path to your services.

   Example:

   ```bash
   Enter your AWS account ID: 123456789012
   Select environment: [staging, production]: staging
   Enter the base path: /home/ubuntu/staging (for example)
   ```

## Usage

Deploybot supports two main commands: `ecs` and `lambda`.

### Deploying ECS Services






1. Build and deploy an ECS service:

   ```bash
   deploybot ecs deploy <service_name>
   ```

   Example:

   ```bash
   deploybot ecs deploy auth
   ```
2. Build an ECS service:

   ```bash
   deploybot ecs build <service_name>
   ```

   Example:

   ```bash
   deploybot ecs build auth
   ```

### Deploying Lambda Services






1. Deploy a Lambda service:

   ```bash
   deploybot lambda deploy <service_name>
   ```

   Example:

   ```bash
   deploybot lambda deploy data-export
   ```



## Testing

To run the tests, use the following command:

```bash
pytest  tests/test_*.py
```



