Deploy Token Args
data class DeployTokenArgs(val expiresAt: Output<String>? = null, val group: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val scopes: Output<List<String>>? = null, val username: Output<String>? = null) : ConvertibleToJava<DeployTokenArgs>
The gitlab.DeployToken
resource allows to manage the lifecycle of group and project deploy tokens. Upstream API: GitLab REST API docs
Import
Starting in Terraform v1.5.0 you can use an import block to import gitlab_deploy_token
. For example: terraform import { to = gitlab_deploy_token.example id = "see CLI command below for ID" } Import using the CLI is supported using the following syntax: GitLab deploy tokens can be imported using an id made up of {type}:{type_id}:{deploy_token_id}
, where type is one of: project, group.
$ pulumi import gitlab:index/deployToken:DeployToken group_token group:1:3
Content copied to clipboard
$ pulumi import gitlab:index/deployToken:DeployToken project_token project:1:4
Content copied to clipboard
Note: the token
resource attribute is not available for imported resources as this information cannot be read from the GitLab API.