Míla Votradovec
09/04/2025, 10:54 AMAsk Inkeep
09/04/2025, 10:54 AMAsk Inkeep
09/04/2025, 10:54 AM<http://api.permit.io|api.permit.io> with <http://api.eu.permit.io|api.eu.permit.io> (2) . Here's how to configure it in the Node SDK:
const permit = new Permit({
// the API key to the Permit environment you wish to connect to
token: "<YOUR_API_KEY>",
// the url in which the SDK can connect to the PDP container
pdp: "<http://localhost:7766>",
// use this to turn on sdk logs
log: {
level: "debug",
},
// the region in which the Permit environment is located
apiUrl: "<https://api.eu.permit.io>",
}) ;
The EU region endpoint is available for Permit Pro customers . You'll need to update your SDK initialization to use the apiUrl: "<https://api.eu.permit.io>" parameter as shown above.Ask Inkeep
09/04/2025, 10:54 AMMíla Votradovec
09/04/2025, 10:57 AMMíla Votradovec
09/04/2025, 10:57 AMOr Weis
09/04/2025, 11:03 AMOr Weis
09/04/2025, 11:04 AMMíla Votradovec
09/05/2025, 6:16 AMAlon Boshi
09/05/2025, 7:19 AMAsk Inkeep
09/05/2025, 7:19 AMAsk Inkeep
09/05/2025, 7:19 AMpermit env export terraform --api-key permit_key --file <http://permit-config.tf|permit-config.tf>
This exports all environment content (resources, roles, user sets, resource sets, condition sets) in the Permit Terraform provider format .
Option 2: Use Terraform Provider directly
Once you have the exported configuration (or if writing from scratch) , you can use the Permit.io Terraform Provider to apply it to your new EU workspace (2) :
terraform {
required_providers {
permitio = {
source = "<http://registry.terraform.io/permitio/permit-io|registry.terraform.io/permitio/permit-io>"
version = "~> 0.0.14" # Use the latest version
}
}
}
# Configure the <http://Permit.io|Permit.io> provider
provider "permitio" {
api_key = "YOUR_EU_API_KEY" # Use your new EU workspace API key
# api_url = "<https://api.permit.io>" # Optional: defaults to <https://api.permit.io>
}
The Terraform Provider allows you to manage your authorization policies, resources, roles, and permissions as infrastructure code . This enables you to version control your authorization policies, automate deployments, and maintain consistency across environments .
After exporting from your US environment and updating the API key to your EU workspace key, you can run terraform apply to recreate all your resources in the EU region.Ask Inkeep
09/05/2025, 7:19 AMMíla Votradovec
09/10/2025, 9:15 AMAsk Inkeep
09/10/2025, 9:15 AMAsk Inkeep
09/10/2025, 9:15 AM{
"key": "new-tenant-name",
"name": "New Tenant Name",
"description": "New tenant description"
}
The Terraform provider integrates with your CI/CD pipeline and supports GitOps workflows (2) , making it ideal for managing tenants across different environments like your EU region migration.Ask Inkeep
09/10/2025, 9:15 AM