Cluster Agent Token
The gitlab.ClusterAgentToken
resource allows to manage the lifecycle of a token for a GitLab Agent for Kubernetes.
Requires at least maintainer permissions on the project. Requires at least GitLab 15.0 Upstream API: GitLab REST API docs
Import
A token for a GitLab Agent for Kubernetes can be imported with the following command and the id pattern <project>:<agent-id>:<token-id>
$ pulumi import gitlab:index/clusterAgentToken:ClusterAgentToken example '12345:42:1'
Content copied to clipboard
ATTENTIONthe token
resource attribute is not available for imported resources as this information cannot be read from the GitLab API.