Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kevingastelum/aws-infra-qfreebot


https://github.com/kevingastelum/aws-infra-qfreebot

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# Objective

Deploy AWS infrastructure with EC2 instance that includes all our settings already configured - VPC, IAM role, Security Group, Policy Rules, etc. Deploy Lambda Function with Docker that runs FastAPI, HTTPX asynchronously to deploy algo bot

## Steps to reproduce

- Install AWS's terminal interface and enter your configs (`pip install awscli` --> `aws configure` --> enter keys&region )
- Install (CDK) Cloud Dev Kit node with command: `npm install -g aws-cdk`
- Bootstrap your AWS acct details (only needs to be done once) run: `cdk bootstrap aws://UR_ACCT_NUMBER/UR_REGION{us-east-1}`

(Get AWS acct details with `aws sts get-account-identity` from CLI)
- Begin CDK project with: `cdk init -l typescript`
- Edit file in - lib/UR_STACK_FILE_NAME.ts - Here is where we configure and create Lambda Function and Docker to run
- Create a Api directory to hold Dockerfile, shell script, and Python script
- Run ./shell_script.sh and this will pip install reqs into a zip file for our lambda function to run from