aws_ec2_host

Nivis Nix constructor for the aws_ec2_host 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,
  availability_zone,
  asset_id ? null,
  auto_placement ? null,
  host_recovery ? null,
  id ? null,
  instance_family ? null,
  instance_type ? null,
  outpost_arn ? null,
  region ? null,
  tags ? null,
  tags_all ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • availability_zone
Optional arguments
  • asset_id (defaults to null)
  • auto_placement (defaults to null)
  • host_recovery (defaults to null)
  • id (defaults to null)
  • instance_family (defaults to null)
  • instance_type (defaults to null)
  • outpost_arn (defaults to null)
  • region (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • owner_id
Example
aws_ec2_host {
  name = "ec2_host";
  availability_zone = …;  # required
}

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