---
updatedAt: 2025-08-12T15:27:25.000Z
agentTools:
  projectIndex: https://docs.scalr.io/llms.txt
---

# Assign Provider Configurations

A provider configuration can be assigned to an environment to authenticate the Terraform or OpenTofu providers that are used within the runs. Provider configurations are assigned to environments and passed to the workspaces which then pass the configurations into the run to be used.

<Image align="center" src="https://files.readme.io/3bfa777e12a1b97511fe3edb27b0d88bbae4c4f31451dedc5ed391718fe25af3-Screenshot_2024-10-10_at_11.51.54_AM.png" />

While the provider configuration relationship can be viewed on the environment page, it is assigned to the environment on the provider configuration page:

<Image align="center" src="https://files.readme.io/05512a356dd2564328cbd68b4bfcd15d5c78dcff2163460ffcac5bc1d5b854a1-Screenshot_2024-10-10_at_11.54.01_AM.png" />

Once a provider configuration is assigned to an environment, it is optional to set it as the **default** configuration for that environment. If it is set as the default, all workspaces in the environment will have it set for it. Every provider type can have one default set per environment. Alternatively, multiple providers of the same type can be assigned to an environment and then set at the workspace level.

Learn more about provider configurations in depth [here](https://docs.scalr.io/docs/provider-configurations).

# Sibling pages

* [Set Backend](https://docs.scalr.io/scalr/docs/set-the-backend.md)
* [Assign VCS Providers](https://docs.scalr.io/scalr/docs/assign-a-vcs-provider.md)
* [Assign Policies](https://docs.scalr.io/scalr/docs/assign-policies.md)
* [Assign Access Policies](https://docs.scalr.io/scalr/docs/grant-iam-access.md)
* [Set Variables](https://docs.scalr.io/scalr/docs/set-variables.md)
* [Enable Drift](https://docs.scalr.io/scalr/docs/enable-drift.md)
* [Set Hooks](https://docs.scalr.io/scalr/docs/set-hooks.md)
* [Federated Environments](https://docs.scalr.io/scalr/docs/cross-environments-access.md)
* [Environment Locking](https://docs.scalr.io/scalr/docs/environment-locking.md)

# What’s Next

* [Assign Policies](https://docs.scalr.io/scalr/docs/assign-policies.md)