Equivalent of terraform import
.
Should be used with command-line arguments --type
, --name
and --id
.
Fields inherited from class | Fields |
---|---|
class AbstractTerraformTask |
JSON_FORMAT, NO_COLOR |
Type | Name and description |
---|---|
java.lang.String |
resourceIdentifier |
java.lang.String |
resourcePath |
Constructor and description |
---|
TerraformImport
(java.lang.String workspaceName) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected TerraformExecSpec |
addCommandSpecificsToExecSpec(TerraformExecSpec execSpec) |
|
void |
exec() |
|
java.lang.String |
getResourceIdentifier() |
|
java.lang.String |
getResourcePath() The resource path |
|
Provider<java.io.File> |
getVariablesFile() This is the location of an variables file used to keep anything provided via the build script. |
|
void |
setResourceIdentifier(java.lang.String id) |
|
void |
setResourceName(java.lang.String id) |
|
void |
setResourcePath(java.lang.String id) |
|
void |
setResourceType(java.lang.String id) |
The resource path
This is the location of an variables file used to keep anything provided via the build script.
Groovy Documentation