getAwsSubnetIdByName

getAwsSubnetIdByName( subnetName: Input<string>, vpcId: Input<string>, provider?: Provider, ): Output<string>

Resolves a subnet ID from an exact subnet Name tag value within a VPC.

Remarks

Subnet Name tags need only be unique within the supplied VPC. When provider is omitted, the lookup uses the default AWS provider.

Parameters

  • subnetName (Input<string>) — Exact subnet Name tag value.
  • vpcId (Input<string>) — ID of the VPC that contains the subnet.
  • provider (Provider, optional) — Optional AWS provider used for the lookup.

Returns

  • Output<string> — The matching subnet ID as a Pulumi output.