Skip to content

This repo demonstrates how to fully automate NextJS Builds/Deployments

Notifications You must be signed in to change notification settings

ngozi-ekekwe/terraform-aws-deployment

Repository files navigation

AWS CI/CD deployment with Terraform

terraform-aws-deployment

Local terraform setup

export the following env variables

  AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID>
  AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>
  ACCOUNT_ID=<ACCOUNT_ID>

Initialize terraform

  • terraform init -var-file=vars.tfvars -backend-config=config/backend-config.tf

Apply to create infra on AWS

  • terraform apply -var-file=vars.tfvars -input=false --lock=false -auto-approve

Destroy infra using terraform

  • terraform destroy --lock=false -var-file=vars.tfvars

About

This repo demonstrates how to fully automate NextJS Builds/Deployments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published