alicloud_cr_repo

This resource will help you to manager Container Registry repositories, see What is Repository.

Example Usage

Basic Usage

variable "name" {
  default = "tf-example"
}
resource "alicloud_cr_namespace" "example" {
  name               = var.name
  auto_create        = false
  default_visibility = "PUBLIC"
}

resource "alicloud_cr_repo" "example" {
  namespace = alicloud_cr_namespace.example.name
  name      = var.name
  summary   = "this is summary of my new repo"
  repo_type = "PUBLIC"
  detail    = "this is a public repo"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Container Registry repository can be imported using the namespace/repository, e.g.

$ terraform import alicloud_cr_repo.default `my-namespace/my-repo`