oci_devops_repository

This resource provides the Repository resource in Oracle Cloud Infrastructure Devops service.

Creates a new repository.

Example Usage

resource "oci_devops_repository" "test_repository" {
    #Required
    name = var.repository_name
    project_id = oci_devops_project.test_project.id
    repository_type = var.repository_repository_type

    #Optional
    default_branch = var.repository_default_branch
    defined_tags = {"foo-namespace.bar-key"= "value"}
    description = var.repository_description
    freeform_tags = {"bar-key"= "value"}
    mirror_repository_config {

        #Optional
        connector_id = oci_devops_connector.test_connector.id
        repository_url = var.repository_mirror_repository_config_repository_url
        trigger_schedule {
            #Required
            schedule_type = var.repository_mirror_repository_config_trigger_schedule_schedule_type

            #Optional
            custom_schedule = var.repository_mirror_repository_config_trigger_schedule_custom_schedule
        }
    }
}

Argument Reference

The following arguments are supported:

* IMPORTANT * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Repository * update - (Defaults to 20 minutes), when updating the Repository * delete - (Defaults to 20 minutes), when destroying the Repository

Import

Repositories can be imported using the id, e.g.

$ terraform import oci_devops_repository.test_repository "id"