Using this data source can open Container Registry (CR) service automatically. If the service has been opened, it will return opened.
For information about Container Registry (CR) and how to use it, see What is Container Registry (CR).
data "alicloud_cr_service" "open" {
enable = "On"
password = "1111aaaa"
}
The following arguments are supported:
enable
- (Optional) Setting the value to On
to enable the service. If has been enabled, return the result. Valid values: On
or Off
. Default to Off
.password
- (Required) The user password. The password must be 8 to 32 characters in length, and must contain at least two of the following character types: letters, special characters, and digits.The following attributes are exported in addition to the arguments listed above:
status
- The current service enable status.