google_service_account_keyNivis Nix constructor for the google_service_account_key resource (provider google-beta). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
service_account_id,
deletion_policy ? null,
id ? null,
keepers ? null,
key_algorithm ? null,
private_key_type ? null,
public_key_data ? null,
public_key_type ? null,
overrides ? {}
}Required arguments
service_account_id
Optional arguments
deletion_policy(defaults tonull)id(defaults tonull)keepers(defaults tonull)key_algorithm(defaults tonull)private_key_type(defaults tonull)public_key_data(defaults tonull)public_key_type(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
nameprivate_keypublic_keyvalid_aftervalid_before
Example
google_service_account_key {
name = "service_account_key";
service_account_id = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.