back
terraform {
required_providers {
alicloud = ">= 1.120.0"
}
}
top
module "alicloud_cr_service" {
source = "./modules/alicloud/d/alicloud_cr_service"
# enable - (optional) is a type of string
enable = null
# password - (required) is a type of string
password = null
}
top
variable "enable" {
description = "(optional)"
type = string
default = null
}
variable "password" {
description = "(required)"
type = string
}
top
data "alicloud_cr_service" "this" {
# enable - (optional) is a type of string
enable = var.enable
# password - (required) is a type of string
password = var.password
}
top
output "id" {
description = "returns a string"
value = data.alicloud_cr_service.this.id
}
output "status" {
description = "returns a string"
value = data.alicloud_cr_service.this.status
}
output "this" {
value = alicloud_cr_service.this
}
top