Skip to main content

State Access Control

Terraform allows accessing states stored on remote backends using its built in terraform_remote_state data resource, env zero allows specifying which environments would be allowed to access an environmentโ€™s state on env zero triggered deployments.

Setting Your Environment State Access

To set your environmentโ€™s state access, simply go to the Environment -> Settings tab and select which projects are allowed to access the environmentโ€™s state. You can choose to allow access to all environments in your organization or limit access to specific projects or their subprojects. After saving these settings only environments in the selected projects or their subprojects will be allowed to fetch that environmentโ€™s state.
Note:These settings will only affect deployments that are running inside env zero, for local runs or state access that is from outside env zero the logged-in API key / User personal key permissions will determine if they can access the state or not.
โŒ˜I