# Same resource type, different endpoints
resource "platform_cluster_topic" "staging_orders" {
  name       = "orders"
  server_url = platform_cluster.staging.endpoint
  api_token  = var.staging_cluster_token
}

resource "platform_cluster_topic" "production_orders" {
  name       = "orders"
  server_url = platform_cluster.production.endpoint
  api_token  = var.production_cluster_token
}
```

The provider handles the different endpoints automatically based on the configuration. Users don't need provider aliases or complex meta-arguments.

## Next steps

Per-resource security and server URL support is available now for Terraform provider generation. When your OpenAPI specification includes operation-level servers or security schemes, you can choose which resources should expose these as configuration options.

If you're building providers for infrastructure platforms with multiple API layers, or migrating existing providers with these patterns, check out the documentation:

- [Terraform provider generation](/docs/terraform/create-terraform)
- [Provider configuration](/docs/terraform/customize/provider-configuration)