Apply for invite to IaCP

scalr_workspace

This data source is used to retrieve details of a single workspace by name.

Syntax

data scalr_workspace example {
  name         = "{workspace-name}"
  organization = "{environment-id}"
}

Arguments

Argument

Required

Description

name

Yes

Name of the workspace to be retrieved

organization

Yes

ID of the organization (Scalr environment)

Attributes

All arguments plus:

Attribute

Description

id

The workspace ID in the format <ORGANIZATION>/<WORKSPACE>.

external_id

The workspace external ID in the format ws-<RANDOM STRING>.

auto_apply

Shows (true/false) if terrafrom apply should autimatically run when terraform plan ends without error.

operations

Shows (true/false) if the workspace is being used for remote execution.

queue_all_runs

Shows (true/false) if all runs should be queued.

terraform_version

The currently configured version of Terraform for this workspace.

vcs_repo

If workspace is linked to VCS repository this block shows the details, otherwise {}.

     identifier

VCS repository ID in the format :org/:repo

     ingress_submodules

Shows (true/false) if submodules should be pulled into the workspace when cloning the VCS repository into Scalr.

     oauth_token_id

The OAuth token ID of the VCS provider.

working_directory

If set shows the sub-directory that Terraform will run in.

created_by

Details of the user that created the workspace.

     username

Username of creator.

     email

Email address of creator.

     full_name

Full name of creator.