alicloud_cr_chart_repository

Provides a CR Chart Repository resource.

For information about CR Chart Repository and how to use it, see What is Chart Repository.

Example Usage

Basic Usage

variable "name" {
  default = "tf-example"
}
resource "alicloud_cr_ee_instance" "example" {
  payment_type   = "Subscription"
  period         = 1
  renew_period   = 0
  renewal_status = "ManualRenewal"
  instance_type  = "Advanced"
  instance_name  = var.name
}

resource "alicloud_cr_chart_namespace" "example" {
  instance_id    = alicloud_cr_ee_instance.example.id
  namespace_name = var.name
}

resource "alicloud_cr_chart_repository" "example" {
  repo_namespace_name = alicloud_cr_chart_namespace.example.namespace_name
  instance_id         = alicloud_cr_chart_namespace.example.instance_id
  repo_name           = var.name
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

CR Chart Repository can be imported using the id, e.g.

$ terraform import alicloud_cr_chart_repository.example <instance_id>:<repo_namespace_name>:<repo_name>