discover_dollar-devops-intern

img 1 git create a folder

install the plugins that are required to create and manage the resources that are defined in your Terraform configuration. img 2 git

run terraform plan command it is used to preview the changes that will be made to your infrastructure. image

Now, run the terraform apply command is used to apply changes to your infrastructure. img 4 git

img 5 git

Now, go to the EC2 instance that you have created img 6 git img 7 git

After installing Docker img 8 git

After running above command once logout and ssh again into your EC2 machine to achieve that. img 9 git

The file structure is currently as follows: img 10 git

we should be able to access the WordPress site by visiting http://EC2_publicip in your web browser.

img 11 git

Fill the required details and login into it.

image