A CLI tool for deploying ECS and Lambda services
Project description
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 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:
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file deploybot-0.4.3.tar.gz
.
File metadata
- Download URL: deploybot-0.4.3.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ed2361947b2954049035bcb1569c6dd29fd6981ca0e0ffa6f563cb607510e8 |
|
MD5 | ac781460ec8162d1744bff287cfdca61 |
|
BLAKE2b-256 | 574b77a270cf44883edc0509ec09855bf5eef06b890802f4bd7875f166eec4be |
File details
Details for the file deploybot-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: deploybot-0.4.3-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 244f67c702cab5cd6114213687848886c02334a8bfa91d8618c76120743b2197 |
|
MD5 | 43c2104a21769abc6ba5e2df8dfa2b0d |
|
BLAKE2b-256 | 9047720e843d23f71256784aeb027cb6463db20fe93b9e81d6b0437564ae5d52 |