A Next.js project bootstrapped with create-next-app
which returns a corporate mission statement
App URL here
- Make sure you have installed Terraform, and Google Cloud SDK
terraform -help # prints Terraform options
npm i
npm run dev
- Populate
deploy/terraform.tfvars
:
region = "europe-west2"
zone = "europe-west2-b"
project = <GCP-PROJECT-ID>
- Create a Cloud Storage bucket to store Terraform state, and populate
main.tf
:
terraform {
backend "gcs" {
bucket = <BUCKET-NAME>
prefix = "terraform/state"
}
}
gcloud auth application-default login # authenticate with GCP
cd deploy # change to deploy directory
terraform init # initialises Terraform
terraform apply # deploys GCP stack
terraform destroy # destroys GCP stack
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
If you find this project helpful, please give a โญ or even better buy me a coffee โ ๐ because I'm a caffeine addict ๐