getAwsSecurityGroupIdByName

getAwsSecurityGroupIdByName( groupName: Input<string>, vpcId: Input<string>, provider?: Provider, ): Output<string>

Resolves a security-group ID from its exact group name within a VPC.

Remarks

Security-group names need only be unique within the supplied VPC. When provider is omitted, the lookup uses the default AWS provider.

Parameters

  • groupName (Input<string>) — Exact security-group name.
  • vpcId (Input<string>) — ID of the VPC that contains the security group.
  • provider (Provider, optional) — Optional AWS provider used for the lookup.

Returns

  • Output<string> — The matching security-group ID as a Pulumi output.