Skip to content

Latest commit

 

History

History
118 lines (92 loc) · 2.03 KB

alicloud_cr_repos.md

File metadata and controls

118 lines (92 loc) · 2.03 KB

alicloud_cr_repos

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_cr_repos" {
  source = "./modules/alicloud/d/alicloud_cr_repos"

  # enable_details - (optional) is a type of bool
  enable_details = null
  # name_regex - (optional) is a type of string
  name_regex = null
  # namespace - (optional) is a type of string
  namespace = null
  # output_file - (optional) is a type of string
  output_file = null
}

top

Variables

variable "enable_details" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "name_regex" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "namespace" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "output_file" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

data "alicloud_cr_repos" "this" {
  # enable_details - (optional) is a type of bool
  enable_details = var.enable_details
  # name_regex - (optional) is a type of string
  name_regex = var.name_regex
  # namespace - (optional) is a type of string
  namespace = var.namespace
  # output_file - (optional) is a type of string
  output_file = var.output_file
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = data.alicloud_cr_repos.this.id
}

output "ids" {
  description = "returns a list of string"
  value       = data.alicloud_cr_repos.this.ids
}

output "names" {
  description = "returns a list of string"
  value       = data.alicloud_cr_repos.this.names
}

output "repos" {
  description = "returns a list of object"
  value       = data.alicloud_cr_repos.this.repos
}

output "this" {
  value = alicloud_cr_repos.this
}

top