Skip to content

Support of ephemeral "write-only" argument to aws_kms_ciphertextΒ #43290

@mmsepyx

Description

@mmsepyx

Description

When we are using aws_kms_ciphertext resource to encrypt some data, it's generally not wanted that the plaintext data is stored in the state, which is currently the case as per documentation. Adding support for ephemeral "write-only" argument would solve this issue.

Affected Resource(s) or Data Source(s)

*aws_kms_ciphertext

Potential Terraform Configuration

variable "my_secret" {
  type      = string
  ephemeral = true
}

resource "aws_kms_ciphertext" "my_encrypted_secret" {
  key_id       = aws_kms_key.my_kms_key.key_id
  plaintext_wo = var.my_secret
}

References

No response

Would you like to implement the enhancement?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.service/kmsIssues and PRs that pertain to the kms service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions