main.tf 474 B

12345678910111213141516171819202122232425262728293031323334
  1. terraform {
  2. required_providers {
  3. hashicups = {
  4. source = "hashicorp.com/edu/hashicups"
  5. }
  6. }
  7. }
  8. provider "hashicups" {
  9. host = "http://localhost:19090"
  10. username = "education"
  11. password = "test123"
  12. }
  13. resource "hashicups_order" "edu" {
  14. items = [
  15. {
  16. coffee = {
  17. id = 3
  18. }
  19. quantity = 2
  20. },
  21. {
  22. coffee = {
  23. id = 2
  24. }
  25. quantity = 2
  26. },
  27. ]
  28. }
  29. output "edu_order" {
  30. value = hashicups_order.edu
  31. }