Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.72 KB

git_integration.md

File metadata and controls

58 lines (43 loc) · 1.72 KB
page_title subcategory description
morpheus_git_integration Resource - terraform-provider-morpheus
Provides a git integration resource

morpheus_git_integration

Provides a git integration resource

Example Usage

data "morpheus_key_pair" "tf_example_key_pair" {
  name = "morpheusgit"
}

resource "morpheus_git_integration" "tf_example_git_integration" {
  name               = "tftest"
  enabled            = true
  url                = "https://github.com/gomorpheus/tfdemo.git"
  default_branch     = "main"
  key_pair_id        = data.morpheus_key_pair.tf_example_key_pair.id
  enable_git_caching = true
}

Schema

Required

  • name (String) The name of the git integration
  • url (String) The url of the git repository

Optional

  • access_token (String, Sensitive) The access token of the account used to authenticate to the git repository
  • default_branch (String) The default branch of the git repository
  • enable_git_caching (Boolean) Whether the git repository is cached
  • enabled (Boolean) Whether the git integration is enabled
  • key_pair_id (Number) The ID of the key pair used to authenticate to the git repository
  • password (String, Sensitive) The password of the account used to authenticate to the git repository
  • username (String) The username of the account used to authenticate to the git repository

Read-Only

  • id (String) The ID of the git integration
  • repository_ids (Map of Number) A map of git repository ids for use with integrations that reference a git repository

Import

Import is supported using the following syntax:

terraform import morpheus_git_integration.tf_example_git_integration 1