Skip to main content

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

  1. Clone the repository:

    cd deploybot-cli
    
  2. 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.

  1. 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

  1. Build and deploy an ECS service:

    deploybot ecs deploy SERVICE_NAME
    

    Example:

    deploybot ecs deploy auth
    

Deploying Lambda Services

  1. 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)

Source distribution for deploybot 0.4.3
File Size Uploaded
deploybot-0.4.3.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deploybot 0.4.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.25

2 release files

0.1.24

2 release files

0.1.23

2 release files

0.1.22

2 release files

0.1.21

2 release files

0.1.20

2 release files

0.1.19

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page