← Integrations
Beta

Terraform + Elido: manage links and domains as code

The provider manages short links and custom domains through the Elido API. Version 0.2.0 is in the Elido repository and is installed locally. It is not published to the Terraform Registry yet.

What you can do

What the provider includes in v0.2.0

elido_link resource
Create, read, update and delete short links in a workspace, with import support.
elido_custom_domain resource
Register a hostname and, by default, wait until DNS verification succeeds. A timeout reports the verify token in the error.
Two data sources
elido_workspace looks a workspace up by numeric id. elido_custom_domain looks up a hostname managed elsewhere.
API token auth
The provider reads the token from the provider block or the ELIDO_API_TOKEN environment variable. api_url defaults to https://api.elido.app.

How it works

A thin layer over the REST API

Each resource calls the same workspace endpoints the dashboard uses. Custom domains go through api-core's domain subsystem, which verifies DNS and provisions TLS on demand.

Setup guide

Install and use it

  1. 1
    Get the provider source

    The provider lives in tools/terraform-provider-elido in the Elido repository. There is no registry release or signed binary yet, so build it and install it with a dev_overrides block (make install-local, see the README).

  2. 2
    Configure the provider

    Set api_url if needed and provide an API token through ELIDO_API_TOKEN.

  3. 3
    Declare resources

    Use elido_link and elido_custom_domain with a workspace_id, then run terraform plan and apply.

Authentication

API token

The provider authenticates with an Elido API token, with the same permissions that token has in the REST API. Prefer the environment variable over writing the token into a configuration file.

Planned

Planned, not built

  • Publishing to the Terraform Registry with signed releases.
  • elido_folder and elido_api_key resources, planned for v0.3.0.
  • Resources for webhooks, tags or workspace settings.

Frequently asked questions

Is the provider on the Terraform Registry?+

No. The registry manifest and release workflow exist, but there is no published release yet.

Which resources exist?+

elido_link and elido_custom_domain, plus data sources elido_workspace and elido_custom_domain.

Can I manage folders or API keys?+

Not yet. Those resources are planned for v0.3.0.

Can I import existing links?+

Yes. elido_link supports terraform import.

Put your short links under version control

Start free. No card required.