oci_artifacts_container_repository

This resource provides the Container Repository resource in Oracle Cloud Infrastructure Artifacts service.

Create a new empty container repository. Avoid entering confidential information.

Example Usage

resource "oci_artifacts_container_repository" "test_container_repository" {
    #Required
    compartment_id = var.compartment_id
    display_name = var.container_repository_display_name

    #Optional
    defined_tags = {"Operations.CostCenter"= "42"}
    freeform_tags = {"Department"= "Finance"}
    is_immutable = var.container_repository_is_immutable
    is_public = var.container_repository_is_public
    readme {
        #Required
        content = var.container_repository_readme_content
        format = var.container_repository_readme_format
    }
}

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

Import

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

$ terraform import oci_artifacts_container_repository.test_container_repository "container/repositories/{repositoryId}"