30 lines
603 B
Terraform
30 lines
603 B
Terraform
|
|
terraform {
|
||
|
|
required_providers {
|
||
|
|
edge-connect = {
|
||
|
|
source = "local/edge-connect"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
provider "edge-connect" {
|
||
|
|
endpoint = "https://api.edge-connect.example.com"
|
||
|
|
token = var.edge_connect_token
|
||
|
|
}
|
||
|
|
|
||
|
|
# Create a simple app
|
||
|
|
resource "edge-connect_app" "example" {
|
||
|
|
name = "my-app"
|
||
|
|
version = "1.0.0"
|
||
|
|
description = "Example application"
|
||
|
|
}
|
||
|
|
|
||
|
|
output "app_id" {
|
||
|
|
description = "The ID of the created app"
|
||
|
|
value = edge-connect_app.example.id
|
||
|
|
}
|
||
|
|
|
||
|
|
output "app_status" {
|
||
|
|
description = "The status of the created app"
|
||
|
|
value = edge-connect_app.example.status
|
||
|
|
}
|