Computer Science Principles
Course Progress
0/0
Objectives in LxD
3.4 Strings
3.4 Strings
3.3 Mathematical Expressions
3.3 Math Expressions
3.2 Data Abstractions
3.2 Data Abstractions
3.1 Variables & Assignments
3.1 Variables and Assignments
3.1 Variables and Assignments (Sample)
Intro to Python
Intro to Javascript
3.5 Boolean Expressions (PY)
3.5 Boolean Expressions (JS)
3.8 Iterations
3.7 Nested Conditionals
3.6 Conditionals
3.8 Iterations
3.7 Nested Conditionals
3.6 Conditionals
3.13 Developing Procedures
3.12 Calling Procedures
3.10 Lists
3.13 Developing Procedures
3.10 Lists
3.9 Developing Algorithms
3.17 Algorithmic Efficiency
3.9 Algorithms
3.17 Algorithmic Efficiency
3.15 Random Numbers (pseudocode)
3.15 Random Numbers (js)
3.15 Random Numbers (py)
BI 3 Review
Data Frames | Pandas | Intro 1
ML | Titanic Data
ML | Fitness
ML | Neural Network | Handwritting Detection
Data Frames | Pandas | Intro 2
Network Stack | HTTP and TCP/IP
API | Request | Response | Database
Data | SQL Connect
Data | SQLAlchemy
Data | Binary Logic
Computer System | Web Server | Flask
Single Responsibility & API Chaining
Computing Systems | AWS Deployment | Setup Applicationa
Computing Systems | AWS Deployment | Launch EC2
Computing System | AWS Deployment| Step-by-Step Guide
Computing Systems | AWS Deployment | Setup Applicationa
1 min read
AWS Docker Deployment - Part 2
Configuring an AWS EC2 Instance for Deployment
In this notebook, we will configure the AWS EC2 instance for hosting applications, including installing necessary packages and setting up Docker.
Installing Required Software
Run the following commands to install Docker, Nginx, Git, and Certbot on the EC2 instance.
# Run these commands on your AWS EC2 instance
!sudo apt-get update && sudo apt-get install -y docker docker-compose nginx git
!sudo snap install certbot --classic
Configuring the Firewall
To allow SSH and web traffic, configure the firewall using UFW:
# Configure firewall settings
!sudo ufw allow OpenSSH
!sudo ufw allow 'Nginx Full'
!sudo ufw enable
Testing the Server
Once Nginx is installed, test if it is running correctly by executing:
!curl localhost
If the setup is successful, you should see an Nginx welcome page.