/laravel.io-infra

Primary LanguageHCLMIT LicenseMIT

Laravel In Kubernetes Infrastructure

Demo of the Laravel In Kubernetes Series, deploying the Laravel.io project.

This repo contains the infrastructure for deploying the application on DigitalOcean in Kubernetes.

Credential Setup

Once you've cloned the repo, you should first create a local.auto.tfvars file, which contains the secrets for your DigitalOcean account

do_token="your_do_token"
do_region="fra1"

Install Providers

The next step is to install the necessary providers

terraform init
terraform validate

Create the Infrastructure

terraform apply

Security

In order to keep everything secret, no passwords are specified in this repo.

To get the password, you should head over to the DigitalOcean UI for your database, REGENERATE THE PASSWORD, and use the new password.