Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevingastelum/aws-infra-qfreebot
https://github.com/kevingastelum/aws-infra-qfreebot
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/kevingastelum/aws-infra-qfreebot
- Owner: KevinGastelum
- Created: 2024-03-25T21:38:17.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-29T08:11:03.000Z (8 months ago)
- Last Synced: 2024-04-18T03:00:06.062Z (7 months ago)
- Language: Python
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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®ion )
- 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