A cdk app which deploys @bankedits onto AWS.
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.
- You will need to create a Twitter developer account and create an app to generate your own access tokens to use the API.
- 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
- Create a virtualenv (recommended)
python3 -m venv .env
source .env/bin/activate
- Install the cdk
npm install -g aws-cdk
pip install -r requirements.txt
- Set up your aws credentials file (~/.aws/credentials)
cdk bootstrap
cdk deploy core
cdk deploy network
cdk deploy bankedits-dev
The deployment now supports multiple bots such as @techedits
These contain their own stacks which you can run independently.