Skip to content

datquach/dcore

Repository files navigation

dcore

version 0.1

Requirement

Install the terraform

Run the terraform command

terraform init terraform plan terraform apply

Intergrate with Jenkins CI

There is the jenkins file which integrate to Jenskin for CI/CD purpose Here is the sample to modify the Variables , there is the branch dev/master

branch dev in this github is used for Dev enviroment branch master in this github is used for Prod enviroment

pipeline { agent any stages { stage('Init') { steps { withAWS(region: 'us-east-1', credentials: 'dcore-api-prodkey') { sh ''' terraform init -input=false ''' } } } stage('Build') { steps { withAWS(region: 'us-east-1', credentials: 'dcore-api-prodkey'){ sh ''' terraform plan -var dcore_environment=prod -var aws_profile=prod -var ecs_cluster=dcore-prod -var ecs_key_pair_name=dcore-prod-key -var max_instance_size=2 -var max_instance_size=4 -var desired_capacity=2 -out=tfplan -input=false terraform apply -input=false tfplan ''' } } } } }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages