Support the Terraform Cloud bakend a.k.a remote
.
In the DSL it is reeferred to as terraformCloud
.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
NAME |
Fields inherited from class | Fields |
---|---|
class AbstractBackendSpec |
DEFAULT_TOKEN_DELIMITER |
Type | Name and description |
---|---|
java.lang.String |
defaultTextTemplate |
java.lang.String |
name |
Constructor and description |
---|
TerraformCloudBackendSpec
(ProjectOperations po, ObjectFactory objects) |
Type Params | Return Type | Name and description |
---|---|---|
|
static TerraformCloudBackendSpec |
findExtension(Project project) Utility method to find this extension on a project. |
|
static TerraformCloudBackendSpec |
findExtension(Project project, java.lang.String sourceSetName) Utility to find this extension on a terraform source set. |
|
void |
setAuthToken(java.lang.Object tok) Set authentication token. |
|
void |
setHostname(java.lang.Object hostname) Sets a hostname if other than app.terraform.io . |
|
void |
setOrganization(java.lang.Object org) Set organization name. |
|
void |
setWorkspaceName(java.lang.Object wsName) The full name of one remote workspace. |
|
void |
setWorkspacePrefix(java.lang.Object prefix) A prefix used in the names of one or more remote workspaces, all of which can be used with this configuration. |
Methods inherited from class | Name |
---|---|
class AbstractBackendSpec |
addTokenProvider, allTokenTemplate, clear, configure, configure, delimiterTokenPair, findExtension, findExtension, getBeginTokenProvider, getEndTokenProvider, getProjectOperations, getTemplateFile, getTextTemplate, getTokenProvider, getTokens, setTemplateFile, setTextTemplate, setTokens, token, tokenPath, tokens |
Utility method to find this extension on a project.
project
- Project contextUtility to find this extension on a terraform source set.
project
- Project contextsourceSetName
- Name of source set.Set authentication token. As an alternative the TerraformRCExtension.credentials method can be used to set credentials in the configuration file.
Sets a hostname if other than app.terraform.io
.
Set organization name.
org
- Organization name.The full name of one remote workspace. Overrides setWorkspacePrefix.
wsName
- Workspace name.A prefix used in the names of one or more remote workspaces, all of which can be used with this configuration. Overrides setWorkspaceName.
prefix
- Workspace prefixGroovy Documentation