You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1.1 KiB

  1. #!/bin/bash
  2. # initialization of terraform state and download openstack plugin/dependencies
  3. ./terraform init
  4. # show what will done
  5. ./terraform plan
  6. # let terraform create the resources specified in .tf file in same directory
  7. ./terraform apply
  8. # you can also use "terraform apply -auto-approve" to prevent terraform from asking back whether it should proceed
  9. # among the benefits of terraform, is that is deploys the resources rather quick. It identifies dependencies and
  10. # deploys independent resources in parallel.
  11. # "terraform graph" creates a dependency graph of the resource specified in the .tf file
  12. # another benefit of terraform is, that it does the heavy lifting to support the APIs of multiple cloud
  13. # providers and supports way more features and cloud services than, e.g., libcloud, hence it's quite popular
  14. #
  15. # among the drawbacks however is, that it comes with its own definition language and does not offer the full
  16. # flexibility of a programming language. In this regard, libcloud, boto3, openstack-sdk etc. are way more flexible
  17. #
  18. # we discuss different cloud service deployment solutions and their pros/cons in the course