Skip to main content

security_groups_list_only

Lists security_groups in a region or regions, for all properties use security_groups

Overview

Namesecurity_groups_list_only
TypeResource
DescriptionResource Type definition for AWS::EC2::SecurityGroup
Idaws.ec2.security_groups_list_only

Fields

NameDatatypeDescription
group_descriptionstringA description for the security group.
group_namestringThe name of the security group.
vpc_idstringThe ID of the VPC for the security group.
idstringThe group name or group ID depending on whether the SG is created in default or specific VPC
security_group_ingressarrayThe inbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
security_group_egressarray[VPC only] The outbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
tagsarrayAny tags assigned to the security group.
group_idstringThe group ID of the specified security group.
regionstringAWS region.

Methods

NameAccessible byRequired Params
list_resourcesSELECTregion

SELECT examples

Lists all security_groups in a region.

SELECT
region,
id
FROM aws.ec2.security_groups_list_only
WHERE region = 'us-east-1';

Permissions

For permissions required to operate on the security_groups_list_only resource, see security_groups