This data source provides the Cr Chart Namespaces of the current Alibaba Cloud user.
Basic Usage
resource "alicloud_cr_ee_instance" "default" {
payment_type = "Subscription"
period = 1
instance_type = "Advanced"
instance_name = "name"
}
resource "alicloud_cr_chart_namespace" "default" {
instance_id = alicloud_cr_ee_instance.default.id
namespace_name = "name"
}
data "alicloud_cr_chart_namespaces" "default" {
instance_id = alicloud_cr_ee_instance.default.id
}
output "output" {
default = data.alicloud_cr_chart_namespaces.default.0.id
}
The following arguments are supported:
ids
- (Optional, ForceNew, Computed) A list of Chart Namespace IDs.instance_id
- (Reu, ForceNew, Computed) The ID of the Container Registry instance.name_regex
- (Optional, ForceNew) A regex string to filter results by name space name.output_file
- (Optional) File name where to save data source results (after running terraform plan
).The following attributes are exported in addition to the arguments listed above:
ids
- A list of matched Container Registry Enterprise Edition namespaces.names
- A list of namespace names.namespaces
- A list of Cr Chart Namespaces. Each element contains the following attributes:
auto_create_repo
- Indicates whether a repository is automatically created when an image is pushed to the namespace.chart_namespace_id
- The ID of the namespace.default_repo_type
- The default repository type. Valid values: PUBLIC
,PRIVATE
.id
- The ID of the Chart Namespace.instance_id
- The ID of the namespace.namespace_name
- The name of the namespace.