» alicloud_cr_repo
This resource will help you to manager Container Registry repositories.
NOTE: Available in v1.35.0+.
NOTE: You need to set your registry password in Container Registry console before use this resource.
» Example Usage
Basic Usage
resource "alicloud_cr_namespace" "my-namespace" {
name = "my-namespace"
auto_create = false
default_visibility = "PUBLIC"
}
resource "alicloud_cr_repo" "my-repo" {
namespace = "${alicloud_cr_namespace.my-namespace.name}"
name = "my-repo"
summary = "this is summary of my new repo"
repo_type = "PUBLIC"
detail = "this is a public repo"
}
» Argument Reference
The following arguments are supported:
-
namespace
- (Required, ForceNew) Name of container registry namespace where repository is located. -
name
- (Required, ForceNew) Name of container registry repository. -
summary
- (Required) The repository general information. It can contain 1 to 80 characters. -
repo_type
- (Required)PUBLIC
orPRIVATE
, repo's visibility. -
detail
- (Optional) The repository specific information. MarkDown format is supported, and the length limit is 2000.
» Attributes Reference
The following attributes are exported:
-
id
- The id of Container Registry repository. The value is in formatnamespace/repository
. -
domain_list
- The repository domain list.
» Import
Container Registry repository can be imported using the namespace/repository
, e.g.
$ terraform import alicloud_cr_repo.default `my-namespace/my-repo`