task-6

 

TASK- 6 

DEPLOYING WORDPRESS ON KUBERNETES WITH RDS USING TERRAFORM.

- By Shivangi Saxena




Task 6: Deploy the Wordpress application on Kubernetes and AWS using terraform including the following steps : -

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 the 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.

Task Implementation: -

1. Provider -AWS :

  • The Amazon Web Services (AWS) provider is used to interact with the many resources supported by AWS. The provider needs to be configured with the proper credentials before it can be used.I have already configure AWS with my credentials with in a profile name "shivprofile"

2. Provider - Kubernetes :

  • Here we can feel the power of Terraform we can control and manage cloud and Kubernetes also with terraform code. Kubernetes is also a provider for Terraform


3. Amazon RDS :


4. WordPress Kubernetes Deployment :






Now start minikube



Now give the commands for creating this infrastructure :
1. terraform init
2. terraform validate
3.terraform apply auto-approve


Outputs













Comments