aws_ec2_secondary_subnet

Nivis Nix constructor for the aws_ec2_secondary_subnet 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,
  ipv4_cidr_block,
  secondary_network_id,
  availability_zone ? null,
  availability_zone_id ? null,
  region ? null,
  tags ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • ipv4_cidr_block
  • secondary_network_id
Optional arguments
  • availability_zone (defaults to null)
  • availability_zone_id (defaults to null)
  • region (defaults to null)
  • tags (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • id
  • ipv4_cidr_block_associations
  • owner_id
  • secondary_network_type
  • secondary_subnet_id
  • state
  • tags_all
Example
aws_ec2_secondary_subnet {
  name = "ec2_secondary_subnet";
  ipv4_cidr_block = …;  # required
  secondary_network_id = …;  # required
}

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