1. Packages
  2. Commercetools Provider
commercetools 1.19.2 published on Friday, Mar 7, 2025 by labd

Commercetools Provider

commercetools logo
commercetools 1.19.2 published on Friday, Mar 7, 2025 by labd

    Generate Provider

    The Commercetools provider must be installed as a Local Package by following the instructions for Any Terraform Provider:

    pulumi package add terraform-provider labd/commercetools
    

    Commercial support

    Need support implementing this pulumi module in your organization? We are able to offer support. Please contact us at opensource@labdigital.nl!

    Installation

    Pulumi automatically downloads providers from the pulumi registry. Add the following to your pulumi project

    Packages of the releases are available at the GitHub Repo. See the pulumi documentation for more information about installing third-party providers.

    Using the provider

    The provider attempts to read the required values from environment variables:

    • CTP_CLIENT_ID
    • CTP_CLIENT_SECRET
    • CTP_PROJECT_KEY
    • CTP_SCOPES
    • CTP_API_URL
    • CTP_AUTH_URL

    Alternatively, you can set it up directly in the pulumi file:

    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime:
    config:
        commercetools:apiUrl:
            value: <api url>
        commercetools:clientId:
            value: <your client id>
        commercetools:clientSecret:
            value: <your client secret>
        commercetools:projectKey:
            value: <your project key>
        commercetools:scopes:
            value: <space seperated list of scopes>
        commercetools:tokenUrl:
            value: <token url>
    

    Configuration Reference

    Using with docker

    The included Dockerfile bundles the official pulumi/pulumi:light docker image with our pulumi-provider-commercetools.

    To build the docker image file locally, use:

    docker build . -t pulumi-with-provider-commercetools:latest
    

    Then you can run a pulumi command on files in the current directory with:

    docker run -v "${pwd}:/config" pulumi-with-provider-commercetools:latest <CMD>
    

    Authors

    This project is developed by Lab Digital. We welcome additional contributors. Please see our GitHub repository for more information.

    commercetools logo
    commercetools 1.19.2 published on Friday, Mar 7, 2025 by labd