Use this data source to retrieve information about environments for a repository.
data "github_repository_environments" "example" {
repository = "example-repository"
}
repository
- (Required) Name of the repository to retrieve the environments from.environments
- The list of this repository's environments. Each element of environments
has the following attributes:
name
- Environment name.node_id
- Environment node id.