aws_instance

Nivis Nix constructor for the aws_instance 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,
  ami ? null,
  associate_public_ip_address ? null,
  availability_zone ? null,
  disable_api_stop ? null,
  disable_api_termination ? null,
  ebs_optimized ? null,
  enable_primary_ipv6 ? null,
  force_destroy ? null,
  get_password_data ? null,
  hibernation ? null,
  host_id ? null,
  host_resource_group_arn ? null,
  iam_instance_profile ? null,
  id ? null,
  instance_initiated_shutdown_behavior ? null,
  instance_type ? null,
  ipv6_address_count ? null,
  ipv6_addresses ? null,
  key_name ? null,
  monitoring ? null,
  placement_group ? null,
  placement_group_id ? null,
  placement_partition_number ? null,
  private_ip ? null,
  region ? null,
  secondary_private_ips ? null,
  security_groups ? null,
  source_dest_check ? null,
  subnet_id ? null,
  tags ? null,
  tags_all ? null,
  tenancy ? null,
  user_data ? null,
  user_data_base64 ? null,
  user_data_replace_on_change ? null,
  volume_tags ? null,
  vpc_security_group_ids ? null,
  capacity_reservation_specification ? null,
  cpu_options ? null,
  credit_specification ? null,
  ebs_block_device ? null,
  enclave_options ? null,
  ephemeral_block_device ? null,
  instance_market_options ? null,
  launch_template ? null,
  maintenance_options ? null,
  metadata_options ? null,
  network_interface ? null,
  primary_network_interface ? null,
  private_dns_name_options ? null,
  root_block_device ? null,
  secondary_network_interface ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments

_None._

Optional arguments
  • ami (defaults to null)
  • associate_public_ip_address (defaults to null)
  • availability_zone (defaults to null)
  • disable_api_stop (defaults to null)
  • disable_api_termination (defaults to null)
  • ebs_optimized (defaults to null)
  • enable_primary_ipv6 (defaults to null)
  • force_destroy (defaults to null)
  • get_password_data (defaults to null)
  • hibernation (defaults to null)
  • host_id (defaults to null)
  • host_resource_group_arn (defaults to null)
  • iam_instance_profile (defaults to null)
  • id (defaults to null)
  • instance_initiated_shutdown_behavior (defaults to null)
  • instance_type (defaults to null)
  • ipv6_address_count (defaults to null)
  • ipv6_addresses (defaults to null)
  • key_name (defaults to null)
  • monitoring (defaults to null)
  • placement_group (defaults to null)
  • placement_group_id (defaults to null)
  • placement_partition_number (defaults to null)
  • private_ip (defaults to null)
  • region (defaults to null)
  • secondary_private_ips (defaults to null)
  • security_groups (defaults to null)
  • source_dest_check (defaults to null)
  • subnet_id (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
  • tenancy (defaults to null)
  • user_data (defaults to null)
  • user_data_base64 (defaults to null)
  • user_data_replace_on_change (defaults to null)
  • volume_tags (defaults to null)
  • vpc_security_group_ids (defaults to null)
  • capacity_reservation_specification (defaults to null)
  • cpu_options (defaults to null)
  • credit_specification (defaults to null)
  • ebs_block_device (defaults to null)
  • enclave_options (defaults to null)
  • ephemeral_block_device (defaults to null)
  • instance_market_options (defaults to null)
  • launch_template (defaults to null)
  • maintenance_options (defaults to null)
  • metadata_options (defaults to null)
  • network_interface (defaults to null)
  • primary_network_interface (defaults to null)
  • private_dns_name_options (defaults to null)
  • root_block_device (defaults to null)
  • secondary_network_interface (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • instance_lifecycle
  • instance_state
  • outpost_arn
  • password_data
  • primary_network_interface_id
  • private_dns
  • public_dns
  • public_ip
  • spot_instance_request_id
Example
aws_instance {
  name = "instance";
}

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