Files

1.9 KiB

page_title, subcategory, description
page_title subcategory description
kms_app_connection_flyio Resource - terraform-provider App Connections Create and manage Fly.io App Connection

kms_app_connection_flyio (Resource)

Create and manage Fly.io App Connection

Example Usage

terraform {
  required_providers {
    kms = {
      # version = <latest version>
      source = "hanzokms/kms"
    }
  }
}

provider "kms" {
  host = "https://kms.hanzo.ai" # Only required if using self hosted instance of Hanzo KMS, default is https://kms.hanzo.ai
  auth = {
    universal = {
      client_id     = "<machine-identity-client-id>"
      client_secret = "<machine-identity-client-secret>"
    }
  }
}

resource "kms_app_connection_flyio" "example" {
  name        = "flyio-connection"
  description = "I am a test app connection"
  method      = "access-token"

  credentials = {
    access_token = "<your-flyio-access-token>"
  }
}

Schema

Required

  • credentials (Attributes) The credentials for the Fly.io App Connection (see below for nested schema)
  • method (String) The method used to authenticate with Fly.io. Possible values are: access-token
  • name (String) The name of the Fly.io App Connection to create. Must be slug-friendly

Optional

  • description (String) An optional description for the Fly.io App Connection.
  • project_id (String) The ID of the project to scope the app connection to. If not provided, the app connection will be scoped to the organization.

Read-Only

  • credentials_hash (String) The hash of the Fly.io App Connection credentials
  • id (String) The ID of the app connection

Nested Schema for credentials

Required:

  • access_token (String, Sensitive) The Fly.io access token for authentication.