oci_devops_repository_ref

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

Creates a new reference or updates an existing one.

Example Usage

resource "oci_devops_repository_ref" "test_repository_ref" {
	#Required
	ref_name = var.repository_ref_ref_name
	ref_type = var.repository_ref_ref_type
	repository_id = oci_devops_repository.test_repository.id

	#Optional
	commit_id = oci_devops_commit.test_commit.id
	object_id = oci_objectstorage_object.test_object.id
}

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 Ref * update - (Defaults to 20 minutes), when updating the Repository Ref * delete - (Defaults to 20 minutes), when destroying the Repository Ref

Import

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

$ terraform import oci_devops_repository_ref.test_repository_ref "repositories/{repositoryId}/refs/{refName}"