Manage your Palantir Foundry enrollment with Terraform. All functionality in this provider is available through the Foundry REST API.
- Terraform 1.0 or later
- A Palantir Foundry enrollment with a Custom Application configured for client-credential authentication
Below is a minimal main.tf to configure this provider.
# Declare the provider and version
terraform {
required_providers {
foundry = {
source = "palantir/palantir-foundry"
version = "your-specified-version-here"
}
}
}
# Initialize the provider
provider "foundry" {
# may be specified with PLTR_CLIENT_ID environment variable
client_id = "your-client-id-here"
# may be specified with PLTR_CLIENT_SECRET environment variable
client_secret = "your-client-secret-here"
# may be specified with PLTR_HOSTNAME environment variable or omitted entirely when running within Foundry
host = "https://example.palantirfoundry.com/"
# OPTIONAL - If true, disabled deletions for all resources, defaults to false
deletions_disabled = false
# OPTIONAL -
}
# Configure a resource
resource "foundry_group" "example-group" {
name = "Example group name"
description = "An example group created by Terraform"
organizations = ["example-organization-rid"]
}For a full list of supported options, resources and data sources, please refer to the documentation.
While we encourage bug reports and feature requests as issues, we are not currently accepting code contributions to this repository. Development of this provider happens internally at Palantir and changes are periodically released to this repository. If you have an urgent need for a feature or bug fix, please reach out to your Palantir representative.