main.tf 588 B

12345678910111213141516171819
  1. terraform {
  2. required_providers {
  3. hashicups = {
  4. source = "hashicorp.com/edu/hashicups"
  5. }
  6. }
  7. }
  8. provider "hashicups" {
  9. host = "http://localhost:19090" // See docker-compose/docker-compose.yml
  10. username = "education" // We used: curl -X POST localhost:19090/signup -d '{"username":"education", "password":"test123"}'
  11. password = "test123" // We used: curl -X POST localhost:19090/signup -d '{"username":"education", "password":"test123"}'
  12. }
  13. data "hashicups_coffees" "edu" {}
  14. output "edu_coffees" {
  15. value = data.hashicups_coffees.edu
  16. }