Run Terraform Command

Run Command

Now, I will run the command to deploy the configured infrastructure on AWS.

  • Run the command to initialize the infrastructure.
terraform init

image

  • Use the next command to preview the changes that will be applied to the infrastructure.
terraform plan

image

  • The final command is used to apply the configured infrastructure to AWS.
terraform apply
  • Type yes.

image

  • Wait about 15 to 20 minutes for the infrastructure to be fully created.

image

Check the Results

After the process is complete, we will go to the AWS console to check the interface to see if the infrastructure has been fully created.

  • Check inside VPC.

image

  • Check in EC2 instance.

image

  • Access RDS.

image

  • Check ECS cluster.

image

  • Check Task definition.

image

  • Check the services in Cloud Map.

image