The ngrok provider is used to configure your ngrok infrastructure. See the Getting Started page for an introduction to using ngrok. Detailed API documentation is also available.
Use the navigation to the left to read about the available resources.
# Configure the ngrok provider
provider "ngrok" {
api_key = "my-api-key"
}
# Create a new reserved domain
resource "ngrok_reserved_domain" "my_domain" {
name = "my-domain.example.com"
region = "us"
certificate_management_policy {
authority = "letsencrypt"
private_key_type = "ecdsa"
}
}
The following arguments are supported:
api_key
- (Required) The ngrok API Key. Use the ngrok dashboard to locate keys. It can be sourced from theNGROK_API_KEY
environment variable.api_base_url
- (Optional) The API URL used to talk with ngrok. The default ishttps://api.ngrok.com
. It can be sourced from theNGROK_API_BASE_URL
environment variable.