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.5 or higher
- Poetry for dependency management
- AWS CLI configured with the necessary credentials
Installation
-
Clone the repository:
cd deploybot-cli
-
Install dependencies using Poetry:
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.
-
Run the configure command:
deploybot configureFollow the prompts to enter your AWS account ID, select the environment (staging or production), and provide the base path to your services.
Example:
Enter your AWS account ID: 123456789012 Select environment: [staging, production]: staging Enter the base path: /home/ubuntu/staging (for example) SAM Deployment Bucket Name Buildkite Organization Slug Buildkite Pipeline Slug
Usage
Deploybot supports two main commands: ecs and lambda.
To check version:
deploybot -v or --version
To get help:
deploybot --help
Deploying ECS Services
-
Build and deploy an ECS service:
deploybot ecs deploy SERVICE_NAME
Example:
deploybot ecs deploy auth
Deploying Lambda Services
-
Deploy a Lambda service:
deploybot lambda deploy LAMBDA_NAME
Example:
deploybot lambda deploy data-export
Testing
To run the tests, use the following command:
python3 -m unittest discover -s tests
Running Specific Tests
Running a Specific Test File
python3 -m unittest tests.test_configure
Running a Specific Test Case
python3 -m unittest tests.test_configure.TestConfigure
Running a Specific Test Method
python3 -m unittest tests.test_configure.TestConfigure.test_configur
Release files for deploybot 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deploybot-0.4.3.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deploybot-0.4.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.2 kB
Release files / deploybot-0.4.3.tar.gz
| Download URL | deploybot-0.4.3.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8ed2361947b2954049035bcb1569c6dd29fd6981ca0e0ffa6f563cb607510e8
|
|
BLAKE2b-256 checksum How to use checksums |
574b77a270cf44883edc0509ec09855bf5eef06b890802f4bd7875f166eec4be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
|
Release files / deploybot-0.4.3-py3-none-any.whl
| Download URL | deploybot-0.4.3-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
244f67c702cab5cd6114213687848886c02334a8bfa91d8618c76120743b2197
|
|
BLAKE2b-256 checksum How to use checksums |
9047720e843d23f71256784aeb027cb6463db20fe93b9e81d6b0437564ae5d52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
|