aws_ec2_instance_state

Nivis Nix constructor for the aws_ec2_instance_state 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,
  instance_id,
  state,
  force ? null,
  id ? null,
  region ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • instance_id
  • state
Optional arguments
  • force (defaults to null)
  • id (defaults to null)
  • region (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • (none)
Example
aws_ec2_instance_state {
  name = "ec2_instance_state";
  instance_id = …;  # required
  state = …;  # required
}

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