Skip to content

Latest commit

 

History

History
90 lines (68 loc) · 1.42 KB

alicloud_cr_namespace.md

File metadata and controls

90 lines (68 loc) · 1.42 KB

alicloud_cr_namespace

back

Index

Terraform

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

top

Example Usage

module "alicloud_cr_namespace" {
  source = "./modules/alicloud/r/alicloud_cr_namespace"

  # auto_create - (required) is a type of bool
  auto_create = null
  # default_visibility - (required) is a type of string
  default_visibility = null
  # name - (required) is a type of string
  name = null
}

top

Variables

variable "auto_create" {
  description = "(required)"
  type        = bool
}

variable "default_visibility" {
  description = "(required)"
  type        = string
}

variable "name" {
  description = "(required)"
  type        = string
}

top

Resource

resource "alicloud_cr_namespace" "this" {
  # auto_create - (required) is a type of bool
  auto_create = var.auto_create
  # default_visibility - (required) is a type of string
  default_visibility = var.default_visibility
  # name - (required) is a type of string
  name = var.name
}

top

Outputs

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

output "this" {
  value = alicloud_cr_namespace.this
}

top