Action Context
Was this helpful?
Was this helpful?
The context object contains data related to the Workspace that you can use inside the action. The properties depends on the .
Contains the workspace information in the Terrakube api format. See the for more details on the properties available.
context.workspace.id: Id of the workspace
context.workspace.attributes.name: Name of the workspace
context.workspace.attributes.terraformVersion: Terraform version
workspace/action
workspace/resourcedrawer/action
workspace/resourcedrawer/tab
Contains the settings that you configured in the display criteria.
context.settings.Repository: the value of repository that you set for the setting. Example:
workspace/action
workspace/resourcedrawer/action
workspace/resourcedrawer/tab
For workspace/action
this property contains the full terraform or open tofu state. For workspace/resourcedrawer/action
and workspace/resourcedrawer/tab
contains only the section of the resource
workspace/action
workspace/resourcedrawer/action
workspace/resourcedrawer/tab
workspace/action
workspace/resourcedrawer/action
workspace/resourcedrawer/tab
Contains the Terrakube api Url. Useful if you want to use the or execute a call to the Terrakube API.