0% found this document useful (0 votes)
18 views6 pages

Exp 8

Uploaded by

swethas0210
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views6 pages

Exp 8

Uploaded by

swethas0210
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

8.

0 Deploy Word press using Cloud Formation


8.1 Create your first cloud infrastructure using Amazon Cloud
Formation
8.2 Use CloudFormation to launch an EC2 (Linux) instance
8.3 Create the Stack and choose template for launching instance
8.4 Perform Wordpress full installation in the instance

8.1 Create your first cloud infrastructure using Amazon Cloud


Formation
Step1:- Open Semester 2 module, and click on Lab 13 – (Creating an
Environment and cloudFormation.
Step2:- Go to Services, Select CloudFormation, or search Cloud Formation in
search bar.
Step3:- Click on Application Composer, and now click on Go to Designer.
Step4:- Under resource types, expand S3 and drag and drop bucket and

click on
Step5:- Select choose an existing template, click next.

Step6:- Give the stack name as mys3bucketstack or any other and click
next.
Step7:- Leave the Configure stack options section as default and click next.
Step8:- Click on submit.

Go to Services and select storage and click on S3. We can see that the
bucket is created successfully.

8.4 Perform Wordpress full installation in the instance


Step1:- Go to Services, Select CloudFormation, or search Cloud Formation in
search bar.
Step2:- Click on Create stack and select With new resources (Standard).
Step3:- Select Use a sample template and select Wordpress blog in Sample
templates and click next.

Step4:- Provide a stack name, DB password, root password, DB username,


select instance type as t2.micro and make sure that you create a keypair and
select the keypair under KeyName and click next.
Step5:- Leave the Configure stack options section as default and click next.
Step6:- Click on Submit.
Step7:- Now click on outputs, and click on the url.
Step8:- Set any title, Username, password and give the email id and click
install wordpress.

Step9:- Click on login and provide the proper credentials and click login.
You will be redirected to Wordpress dashboard page which indicates that
wordpress installation is successful.

8.2 Use CloudFormation to launch an EC2 (Linux) instance


Step1:- Go to ec2, and click on instances and click the instance which is
available and copy the public ipv4 address.
Step2:- Open putty and select the keypair that is already created, and login
with the username as ec2-user.
Step3:- Type the command - mysql -h localhost -P 3303 -u DB_Username -p
Step4:- Now enter the DB password.

Step 5:- Type the command – use wordpressdb;

Step6:- Type the command – show tables;

Step7:- Perform the common SQL Operations on the given list of tables.
For example:-

Step 8:- Type the command – select * from wp_users;

You might also like