You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

deploybot

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deploybot

A CLI tool for deploying ECS and Lambda services

0.4.3
PyPI
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts