/terraform-laravel-pipeline

Build & Deploy Laravel Project on AWS using Infra as code.

Primary LanguageHCL

Terraform Laravel Pipeline

CircleCI

CircleCI

Install AWSClI

  1. Download & install for Windows
  2. Download & install for Ubunu

Usage

To run this example you need to execute:

terraform init
terraform plan -out terraform.plan
terraform apply terraform.plan

Variables

  • stage - Name of the Environment of application stage prod testing (default: dev)
  • app_name - Name of application (default: example-webapp)
  • instance_type - EC2 Instance type for your applicaton (default: t2.micro)
  • key_name - EC2 Instance PEM Key name, Make sure Enter conrrect pem key as aws region (Required: [])
  • desired_capacity - Desired number of EC2 instances in AutoScaling Group (default: 1)
  • min_size - Minimum number of EC2 instances in AutoScaling Group (default: 1)
  • max_size - Maximum number of EC2 instances in AutoScaling Group (default: 1)

Note: If you're using github account for SCM in aws-pipeline then update below Properties.

  • github_auth_token - Github account authication token (Required: [])
  • github_user - Github account username (Required: [])
  • github_repo - Github account repository, which is you're going to use in pipeline. (Required: [])
  • github_branch - Github repository branch name (default: master)

Outputs

  • ec2_instance_name - The EC2 Instance Name