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
idstringThe group name or group ID depending on whether the SG is created in default or specific VPC
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