Skip to content

Instantly share code, notes, and snippets.

View atulkamble's full-sized avatar
☁️
Azure, AWS, DevOps Training & Consulting

Atul Kamble atulkamble

☁️
Azure, AWS, DevOps Training & Consulting
View GitHub Profile
@atulkamble
atulkamble / autoscaling-EC2.md
Last active September 14, 2023 07:22
autoscaling-EC2

Autoscaling Group

  1. Create Autoscaling group from EC2 Tab
  2. Separate Security Group
  3. Select Subnets
  4. Create Template | Within Template try following Code
  5. Select Custom Data Setting at last | OS - Amazon Linux 2023 | Paste following code.
  6. Monitor Changes
  7. Edit minimum, desired, maximum instances configuration from Autoscaling Group Setting
@atulkamble
atulkamble / efs.md
Last active September 13, 2023 07:39
efs

EFS

  1. Navigate to EFS
  2. Create File System
  3. Open Customise
  4. Configure Subnets, Security Groups
  5. Launch 2 instances
  6. Connect through ssh
  7. Check for files which has been created from istances
  8. Terminate efs, instances, check vpc
@atulkamble
atulkamble / wordpress-ec2-0.md
Created September 13, 2023 04:40
wordpress-ec2-0

Task: Host a WordPress blog on Amazon Linux 2023

Update instance

sudo yum update -y

download pacakges

@atulkamble
atulkamble / vscode0.md
Last active September 11, 2023 04:47
vscode0
@atulkamble
atulkamble / webserver.md
Created September 10, 2023 13:34
webserver

Add following Custom data tab of EC2 Configuration | Advanced

Launching EC2 Webserver | httpd

!/bin/bash 
yum update -y 
yum install -y httpd 
systemctl start httpd 
systemctl enable httpd 

chmod 777 /var/www/html/

@atulkamble
atulkamble / docker3ec2dockerwordpressnginx.md
Created September 10, 2023 07:52
docker3ec2dockerwordpressnginx

Task 2) Launch windows type of instance & do rdp connection for it

Task 3) Deploy IIS WebServer on Windows type of EC2 Instance.

Task 4) Deploy nginx server/apache2 server on linux type of instance.

sudo apt update -y
sudo apt install nginx -y
OR 

sudo apt install apache2

@atulkamble
atulkamble / docker2pythonapp-hello-world.md
Last active September 9, 2023 09:00
docker2pythonapp-hello-world

Run python webapp on docker

docker run -p 5000:5000 in28min/hello-world-python:0.0.1.RELEASE

Check following link from web-browser http://localhost:5000