airavata-courses / spring17-devops

DevOps packages for deploying scalable microservice architectural components for Spring 2017 class excercises
Apache License 2.0
4 stars 2 forks source link

Infrastructure as code #3

Closed anujbhan closed 7 years ago

anujbhan commented 7 years ago

I have pushed the code for api-server, lets do this for all the other projects to, specially the portal.

Please assign urself, if you wish to contribute

Ameya05 commented 7 years ago

Hey @anujbhan, I was looking at the terraform.tfstate file in s3. Was wondering how the values related to launch configuration were created?

anujbhan commented 7 years ago

The state files are created by terraform, for example:

  1. spring17-api-infra.tf file contains the definition for all the infrastructure.

  2. variables.tf contains all the variables, which can be changed to scale up or scale down infrastructure (instances)

  3. When you change something and do a "terraform plan", it will automatically compute the changes and display the changes which will be effective. Finally when you do a "terraform apply" those changes will be pushed to cloud.