项目作者: prajavat

项目描述 :
Build & Deploy Laravel Project on AWS using Infra as code.
高级语言: HCL
项目地址: git://github.com/prajavat/terraform-laravel-pipeline.git
创建时间: 2020-01-24T07:09:22Z
项目社区:https://github.com/prajavat/terraform-laravel-pipeline

开源协议:

下载


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:

  1. terraform init
  2. terraform plan -out terraform.plan
  3. 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