Skip to content

Latest commit

 

History

History
92 lines (69 loc) · 1.54 KB

alicloud_kms_plaintext.md

File metadata and controls

92 lines (69 loc) · 1.54 KB

alicloud_kms_plaintext

back

Index

Terraform

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

top

Example Usage

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

  # ciphertext_blob - (required) is a type of string
  ciphertext_blob = null
  # encryption_context - (optional) is a type of map of string
  encryption_context = {}
}

top

Variables

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

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

top

Datasource

data "alicloud_kms_plaintext" "this" {
  # ciphertext_blob - (required) is a type of string
  ciphertext_blob = var.ciphertext_blob
  # encryption_context - (optional) is a type of map of string
  encryption_context = var.encryption_context
}

top

Outputs

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

output "key_id" {
  description = "returns a string"
  value       = data.alicloud_kms_plaintext.this.key_id
}

output "plaintext" {
  description = "returns a string"
  value       = data.alicloud_kms_plaintext.this.plaintext
}

output "this" {
  value = alicloud_kms_plaintext.this
}

top