Capstone Project Final Steps
Capstone Project Final Steps
1)Subnet Info
Public subnet1-10.0.0.0/24
Public subnet2-10.0.1.0/24
Private Subnet1-10.0.2.0/23
Private Subnet2-10.0.4.0/23
Step2:Create Database
Navigate RDS Service in aws and create db instance
RDS-->Database-->Create Database
Create database:
Choose a database creation method-Standard create
Engine options-Select MySQL
Templates-Dev/Test
Availability and durability-Choose Multi-AZ DB instance
Settings
DB instance identifier-Example
Credentials Settings:
Master username-admin
Master password-password
Confirm password-password
Instance Configuration:
DB instance class-Choose Burstable classes (includes t classes)-t3.micro
Storage:
Storage type:General purpose
Allocated Storage -20GB
Storage Autoscaling:
Enable storage autoscaling
Connectivity
Virtual private cloud (VPC)-Select Example VPC
Subnet Group-Example-DB-subnet(automatically choosed)
Public Access-No
VPC Security Group-Example-DB
Database Authentication
Database authentication options-Password authentication
Database options
Initial database name-exampledb
Backup-uncheck it
Monitoring -Disable monitoring
Navigate cloud9
Step 1
Name environment
Name-capstone project
Step 2
Configure settings
Environment type-ensure Direct access
Step 3
Review -Create Environment
Step2-Download the project assets(copy from link from the capstone project)
Then Come back to Cloud9 services and Unzip the php downloaded file by using
ls
sudo unzip Example.zip
sudo cp Example/* /var/www/html/
sudo rm Examble.zip
Check public IP of Cloud9 EC2 instance and paste into new tab(Now Webpage is not
showing)
Solution:
Choose Instances and select your instance.(Cloud9 created Instance-Start with aws-
cloud9)
On the Security tab, view the inbound rules. Add HTTP protocol with 0.0.0.0/0 then
again refresh your webpage it will shows the webpage
cd..
//Download Database:
wget https://aws-tc-largeobjects.s3-us-west-2.amazonaws.com/ILT-TF-200-ACACAD-20-
EN/capstone-project/Countrydatadump.sql
ll or ls
Important:
Go to Security Group and select Example-DB and add inbound rule for
MYSQL/Aurora and source to cloud9 instance then only we can able to import the
database
DB instance identifier-Example
Credentials Settings-admin
Master password-password
It asks password then give password(copy password from master password) then hit
enter
It asks password then give password(copy password from master password) then hit
enter
Step1:
Navigate to AWS systems manager and create parameter for following values
/example/endpoint <rds-endpoint>
/example/username admin
/example/password password
/example/database exampledb
Image Name-CapstoneProjectAMI
Description-AMI for CapstoneProject
Then create Image.
It will takes few minutes.
Security groups
Security groups-Select ALBSG security group
Come back to Load balance and refresh this Listener and routing,now we can see
created target group name and select it.
Select CapstoneProject-TG
Then Click create Load Balancer
Task8-Create AutoScaling
EC2 management console under Auto Scaling choose Auto Scaling Groups in new tab
Scroll down and on Launch Templates Contents choose our CapstoneProjectAMI ID then
create it.
Step 2
Choose instance launch options
Network
VPC-Select Example VPC
Availability Zones and subnets-Select Private subnet1 & Private subnet2 then click
next
Step 3 (optional)
Configure advanced options
Load balancing - optional-Select Attach to an existing load balancer
Attach to an existing load balancer
Existing load balancer target groups-Select CapstoneProject-LB
Health checks - Select ELB(check mark) then click next
Step 4 (optional)
Configure group size and scaling policies
Step 5 (optional)
Add notifications
Step 6 (optional)
Add tags
Add name tag and value as Nminds-CapstoneProject and click next
Step 7
Review then click Create Auto Scaling group
Go to Load balancer and copy that DNS name and paste it into new tab.