aws_lightsail_instance

Nivis Nix constructor for the aws_lightsail_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,
  availability_zone,
  blueprint_id,
  bundle_id,
  id ? null,
  ip_address_type ? null,
  key_pair_name ? null,
  cfg_name ? null,
  region ? null,
  tags ? null,
  tags_all ? null,
  user_data ? null,
  add_on ? null,
  overrides ? {}
}
Required arguments
  • availability_zone
  • blueprint_id
  • bundle_id
Optional arguments
  • id (defaults to null)
  • ip_address_type (defaults to null)
  • key_pair_name (defaults to null)
  • cfg_name (defaults to null)
  • region (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
  • user_data (defaults to null)
  • add_on (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • cpu_count
  • created_at
  • ipv6_addresses
  • is_static_ip
  • private_ip_address
  • public_ip_address
  • ram_size
  • username
Example
aws_lightsail_instance {
  name = "lightsail_instance";
  availability_zone = …;  # required
  blueprint_id = …;  # required
  bundle_id = …;  # required
}

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