Connectors resources
Azion Terraform Provider resource and data sources that create and read connectors to origins: azion_connector and azion_connectors.
A connector sets how your applications communicate with the origins that hold your content. In API v4, connectors take the place of the origins of API v3. The Azion Terraform Provider manages Connectors with one resource and reads them with two data sources. In provider v1.x, an origin resource that belonged to an application did this work. To move a v1.x configuration to connectors, refer to Migrate from provider v1.x to v2.0.
Connector resources
| Resource | Description |
|---|---|
azion_connector | Creates and manages a connector. |
azion_connector requires name, a string that holds the unique name of the connector, and exports id, a string that holds the unique ID of the connector. The Terraform Registry page of the resource lists every argument.
Data sources
| Data source | Description |
|---|---|
azion_connectors | Lists connectors. |
azion_connector | Reads one connector. |
Example
This configuration pins the provider, creates a connector, reads the existing connectors, and outputs the ID of the connector. It reads your personal token from the api_token variable that the Azion Terraform Provider quickstart declares.