GetKMSSecret
This data source allows you to use data encrypted with Google Cloud KMS within your resource definitions.
For more information see the official documentation.
NOTE: Using this data provider 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 GetKMSSecret
function getKMSSecret(args: GetKMSSecretArgs, opts?: InvokeOptions): Promise<GetKMSSecretResult>function get_kms_secret(additional_authenticated_data=None, ciphertext=None, crypto_key=None, opts=None)func GetKMSSecret(ctx *Context, args *GetKMSSecretArgs, opts ...InvokeOption) (*GetKMSSecretResult, error)public static class GetKMSSecret {
public static Task<GetKMSSecretResult> InvokeAsync(GetKMSSecretArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Ciphertext string
The ciphertext to be decrypted, encoded in base64
- Crypto
Key string The id of the CryptoKey that will be used to decrypt the provided ciphertext. This is represented by the format
{projectId}/{location}/{keyRingName}/{cryptoKeyName}.- Additional
Authenticated stringData The additional authenticated data used for integrity checks during encryption and decryption.
- Ciphertext string
The ciphertext to be decrypted, encoded in base64
- Crypto
Key string The id of the CryptoKey that will be used to decrypt the provided ciphertext. This is represented by the format
{projectId}/{location}/{keyRingName}/{cryptoKeyName}.- Additional
Authenticated stringData The additional authenticated data used for integrity checks during encryption and decryption.
- ciphertext string
The ciphertext to be decrypted, encoded in base64
- crypto
Key string The id of the CryptoKey that will be used to decrypt the provided ciphertext. This is represented by the format
{projectId}/{location}/{keyRingName}/{cryptoKeyName}.- additional
Authenticated stringData The additional authenticated data used for integrity checks during encryption and decryption.
- ciphertext str
The ciphertext to be decrypted, encoded in base64
- crypto_
key str The id of the CryptoKey that will be used to decrypt the provided ciphertext. This is represented by the format
{projectId}/{location}/{keyRingName}/{cryptoKeyName}.- additional_
authenticated_ strdata The additional authenticated data used for integrity checks during encryption and decryption.
GetKMSSecret Result
The following output properties are available:
- Ciphertext string
- Crypto
Key string - Id string
The provider-assigned unique ID for this managed resource.
- Plaintext string
Contains the result of decrypting the provided ciphertext.
- Additional
Authenticated stringData
- Ciphertext string
- Crypto
Key string - Id string
The provider-assigned unique ID for this managed resource.
- Plaintext string
Contains the result of decrypting the provided ciphertext.
- Additional
Authenticated stringData
- ciphertext string
- crypto
Key string - id string
The provider-assigned unique ID for this managed resource.
- plaintext string
Contains the result of decrypting the provided ciphertext.
- additional
Authenticated stringData
- ciphertext str
- crypto_
key str - id str
The provider-assigned unique ID for this managed resource.
- plaintext str
Contains the result of decrypting the provided ciphertext.
- additional_
authenticated_ strdata
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.