This resource allows you to create and manage deploy keys for your GitLab projects.
resource "gitlab_deploy_key" "example" {
project = "example/deploying"
title = "Example deploy key"
key = "ssh-rsa AAAA..."
}
The following arguments are supported:
project - (Required, string) The name or id of the project to add the deploy key to.
title - (Required, string) A title to describe the deploy key with.
key - (Required, string) The public ssh key body.
can_push - (Optional, boolean) Allow this deploy key to be used to push changes to the project. Defaults to false. NOTE:: this cannot currently be managed.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/gitlab/r/deploy_key.html