tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

alicloud_kms_ciphertext

back

Index

Terraform

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

top

Example Usage

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

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

top

Variables

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

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

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

top

Datasource

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

top

Outputs

output "ciphertext_blob" {
  description = "returns a string"
  value       = data.alicloud_kms_ciphertext.this.ciphertext_blob
}

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

output "this" {
  value = alicloud_kms_ciphertext.this
}

top