Skip to content

liranfar/Terraform-Skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform skeleton on AWS

Usage

set up access and secret key in credentials.tf :

variable "aws_access_key" {
  description = "aws access key"
  default = "XXX" 
}
variable "aws_secret_key" {
  description = "aws_secret_key"
  default = "XXX" 
}

How to run

terraform init
# terraform plan
terraform apply

Verify

curl <public-ip-output>
Hello World

References

TODOs

[X] create new github repo which contains only spring boot app with maven ( take it from jenkinsFile-helloWorld repo)

  1. Create in that repo, jenkinsFile and teraform file for the deployment from jenkins
  2. Divide the job to 2 main phases:
    • build, test ,create docker image and push to docker-registry/nexus
    • configure the teraform script to pull and run the docker image
  3. Configure jenkins to install the terraform tool automatically ( low priority )
  4. Install & run docker/docker-compose under ec2-user permissions ( currently everything runs on root )

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published