Deploy the WordPress application on Kubernetes and AWS RDS using terraform

Deploy the WordPress application on Kubernetes and AWS RDS using terraform

Task-Description:-

1. Write an Infrastructure as code using Terraform, which automatically deploy the WordPress application

2. On AWS, use RDS service for the relational database for WordPress application.

3. Deploy WordPress as a container either on top of Minikube or EKS or Fargate service on AWS

4. The WordPress application should be accessible from the public world if deployed on AWS or through workstation if deployed on Minikube.

Now, Let's start with the practical part.

Prerequisite:

  1. Create an AWS profile and configure it.
  2. Terraform install
  3. Minikube install
No alt text provided for this image
No alt text provided for this image

2. On AWS, use RDS service for the relational database for WordPress application

No alt text provided for this image

Deploy WordPress as a container either on top of Minikube or EKS or Fargate service on AWS.

use terraform init to install plugins required:

No alt text provided for this image

use a terraform plan to create an execution plan

No alt text provided for this image

use terraform apply -auto-approve to make the resources run

No alt text provided for this image
No alt text provided for this image

4. The WordPress application should be accessible from the public world if deployed on AWS or through workstation if deployed on Minikube.

No alt text provided for this image
No alt text provided for this image

Congratulations! our task is completed.

Now, use terraform destroy -auto-approve to destroy the resources.

No alt text provided for this image

thank you for reading the article, for any suggestions or queries dm me.


To view or add a comment, sign in

More articles by Ritik Agarwal

Explore content categories