Skip to content

TokyoQ/bankedits-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bankedits-deploy

A cdk app which deploys @bankedits onto AWS.

Environment

The application will create a new VPC with 2 public subnets only to avoid the need to run a NAT instance. There is a dev and prod stack for each bot. The dev version will add a security group to allow ssh access for debugging purposes.

Build

  1. You will need to create a Twitter developer account and create an app to generate your own access tokens to use the API.
  2. In the files folder, create a file called .bankedits.secret with the below format and specify your credentials.
    consumer_key=xxx 
    consumer_secret=xxx
    access_token=xxx
    access_token_secret=xxx
  1. Create a virtualenv (recommended) python3 -m venv .env source .env/bin/activate
  2. Install the cdk npm install -g aws-cdk
  3. pip install -r requirements.txt
  4. Set up your aws credentials file (~/.aws/credentials)
  5. cdk bootstrap
  6. cdk deploy core
  7. cdk deploy network
  8. cdk deploy bankedits-dev

Other Bots

The deployment now supports multiple bots such as @techedits

These contain their own stacks which you can run independently.

About

A cdk app which deploys @bankedits

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published