1. Packages
  2. Equinix
  3. Installation & Configuration
Equinix v0.19.0 published on Thursday, Oct 24, 2024 by Equinix

Equinix: Installation & Configuration

equinix logo
Equinix v0.19.0 published on Thursday, Oct 24, 2024 by Equinix

    Installation

    The Pulumi Equinix provider is available as a package in all Pulumi languages:

    Provider Binary

    The Equinix provider binary is a third party binary. It can be installed using the pulumi plugin command.

    pulumi plugin install resource equinix --server github://api.github.com/equinix
    

    Replace the version string with your desired version.

    Credentials

    To provision resources with the Pulumi Equinix provider, you need to have Equinix credentials.

    For information about obtaining API key and secret required for Equinix Fabric and Network Edge refer to Generating Client ID and Client Secret key from Equinix Developer Platform portal.

    Interacting with Equinix Metal requires an API auth token that can be generated at Project-level or User-level. User API keys can be obtained by creating them in the Equinix Metal Portal or by using the Create a User API Key endpoint. Project API keys can also be obtained by creating them in the Equinix Metal Portal or by using the Create a Project API Key endpoint.

    If you are only using Equinix Metal resources, you may omit the Client ID and Client Secret provider configuration parameters needed to access other Equinix resource types (Network Edge, Fabric, etc).

    Configuration

    There are a few different ways you can configure your Equinix credentials to work with Pulumi.

    Set environment variables

    Once you have your credentials, you can set environment variables to provision resources in Equinix:

    $ export METAL_AUTH_TOKEN=<METAL_AUTH_TOKEN>
    $ export EQUINIX_API_CLIENTID=<EQUINIX_API_CLIENTID>
    $ export EQUINIX_API_CLIENTSECRET=<EQUINIX_API_CLIENTSECRET>
    
    $ export METAL_AUTH_TOKEN=<METAL_AUTH_TOKEN>
    $ export EQUINIX_API_CLIENTID=<EQUINIX_API_CLIENTID>
    $ export EQUINIX_API_CLIENTSECRET=<EQUINIX_API_CLIENTSECRET>
    
    > $env:METAL_AUTH_TOKEN = "<METAL_AUTH_TOKEN>"
    > $env:EQUINIX_API_CLIENTID = "<EQUINIX_API_CLIENTID>"
    > $env:EQUINIX_API_CLIENTSECRET = "<EQUINIX_API_CLIENTSECRET>"
    

    Configuration Options

    Use pulumi config set equinix:<option> or pass options to the constructor of new equinix.Provider.

    OptionRequired/OptionalDescription
    authTokenOptionalThe Equinix Metal API auth key for API operations.
    clientIdOptionalAPI Consumer Key available under My Apps section in Equinix developer portal.
    clientSecretOptionalAPI Consumer secret available under My Apps section in Equinix developer portal.
    tokenOptionalAPI token from the developer sandbox. Token’s can be generated for the API Client using the OAuth2 Token features described in the OAuth2 API documentation. The client_id and client_secret arguments will be ignored in the presence of a token argument.
    endpointOptionalThe Equinix API base URL to point out desired environmen. Defaults to https://api.equinix.com.
    maxRetriesOptionalThe maximum number of retries in case of network failure.
    maxRetryWaitSecondsOptionalThe maximum time to wait in case of network failure.
    requestTimeoutOptionalThe duration of time, in seconds, that the Equinix Platform API Client should wait before canceling an API request. Defaults to 30.
    responseMaxPageSizeOptionalThe maximum number of records in a single response for REST queries that produce paginated responses.
    equinix logo
    Equinix v0.19.0 published on Thursday, Oct 24, 2024 by Equinix