Skip to main content

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

  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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deploybot-0.4.3.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

deploybot-0.4.3-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page