GetKMSSecretCiphertext

!> Warning: This data source is deprecated. Use the gcp.kms.SecretCiphertext resource instead.

This data source allows you to encrypt data with Google Cloud KMS and use the ciphertext within your resource definitions.

For more information see the official documentation.

NOTE: Using this data source will allow you to conceal secret data within your resource definitions, but it does not take care of protecting that data in the logging output, plan output, or state output. Please take care to secure your secret data outside of resource definitions.

Using GetKMSSecretCiphertext

function getKMSSecretCiphertext(args: GetKMSSecretCiphertextArgs, opts?: InvokeOptions): Promise<GetKMSSecretCiphertextResult>
function  get_kms_secret_ciphertext(crypto_key=None, plaintext=None, opts=None)
func GetKMSSecretCiphertext(ctx *Context, args *GetKMSSecretCiphertextArgs, opts ...InvokeOption) (*GetKMSSecretCiphertextResult, error)
public static class GetKMSSecretCiphertext {
    public static Task<GetKMSSecretCiphertextResult> InvokeAsync(GetKMSSecretCiphertextArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

CryptoKey string

The id of the CryptoKey that will be used to encrypt the provided plaintext. This is represented by the format {projectId}/{location}/{keyRingName}/{cryptoKeyName}.

Plaintext string

The plaintext to be encrypted

CryptoKey string

The id of the CryptoKey that will be used to encrypt the provided plaintext. This is represented by the format {projectId}/{location}/{keyRingName}/{cryptoKeyName}.

Plaintext string

The plaintext to be encrypted

cryptoKey string

The id of the CryptoKey that will be used to encrypt the provided plaintext. This is represented by the format {projectId}/{location}/{keyRingName}/{cryptoKeyName}.

plaintext string

The plaintext to be encrypted

crypto_key str

The id of the CryptoKey that will be used to encrypt the provided plaintext. This is represented by the format {projectId}/{location}/{keyRingName}/{cryptoKeyName}.

plaintext str

The plaintext to be encrypted

GetKMSSecretCiphertext Result

The following output properties are available:

Ciphertext string

Contains the result of encrypting the provided plaintext, encoded in base64.

CryptoKey string
Id string

The provider-assigned unique ID for this managed resource.

Plaintext string
Ciphertext string

Contains the result of encrypting the provided plaintext, encoded in base64.

CryptoKey string
Id string

The provider-assigned unique ID for this managed resource.

Plaintext string
ciphertext string

Contains the result of encrypting the provided plaintext, encoded in base64.

cryptoKey string
id string

The provider-assigned unique ID for this managed resource.

plaintext string
ciphertext str

Contains the result of encrypting the provided plaintext, encoded in base64.

crypto_key str
id str

The provider-assigned unique ID for this managed resource.

plaintext str

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.