Advertisement
matthewdeanmartin

Terraform for Breakfast

Dec 26th, 2022 (edited)
1,524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.68 KB | None | 0 0
  1. # Configure the Restaurant provider
  2. provider "restaurant" {
  3.   # Set the provider-specific configuration options
  4. }
  5.  
  6. # Define the vegan breakfast resource
  7. resource "restaurant_vegan_breakfast" "vegan_breakfast" {
  8.   # Set the resource-specific configuration options
  9.   menu_item_name = "Vegan Breakfast"
  10.   ingredients = ["tofu scramble", "vegan sausage", "vegan cheese", "avocado toast", "fruit salad"]
  11.   price = "$12.99"
  12. }
  13.  
  14. # Output the vegan breakfast details
  15. output "vegan_breakfast_details" {
  16.   value = "${restaurant_vegan_breakfast.vegan_breakfast.menu_item_name} - ${restaurant_vegan_breakfast.vegan_breakfast.ingredients} - ${restaurant_vegan_breakfast.vegan_breakfast.price}"
  17. }
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement