aws_key_pair

Nivis Nix constructor for the aws_key_pair resource (provider aws). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.

Constructor
{
  name,
  public_key,
  id ? null,
  key_name ? null,
  key_name_prefix ? null,
  region ? null,
  tags ? null,
  tags_all ? null,
  overrides ? {}
}
Required arguments
  • public_key
Optional arguments
  • id (defaults to null)
  • key_name (defaults to null)
  • key_name_prefix (defaults to null)
  • region (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • fingerprint
  • key_pair_id
  • key_type
Example
aws_key_pair {
  name = "key_pair";
  public_key = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.