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

# Set Variables

Any variables set for the environment are then shared with all workspaces within an environment. Users at the workspace level cannot override variables set at the environment level. Variables are optional and can be set for both shell and Terraform variable types.

<Image align="center" src="https://files.readme.io/63971abfaca05f336932bce3464a453f2688ceee8f4a7c6bd837b2c4c74ab7b5-Screenshot_2024-10-10_at_12.03.30_PM.png" />

Learn more about variables [here](https://docs.scalr.io/docs/variables).

# 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 Provider Configurations](https://docs.scalr.io/scalr/docs/assign-a-provider-configuration.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)
* [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

* [Workspaces](https://docs.scalr.io/scalr/docs/workspaces.md)