Deploy Token
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:3Content copied to clipboard
$ pulumi import gitlab:index/deployToken:DeployToken project_token project:1:4Content copied to clipboard
Note: the token resource attribute is not available for imported resources as this information cannot be read from the GitLab API.