Skip to main content

security_group_tags

Expands all tag keys and values for security_groups in a region

Overview

Namesecurity_group_tags
TypeResource
DescriptionResource Type definition for AWS::EC2::SecurityGroup
Idaws.ec2.security_group_tags

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.
group_idstringThe group ID of the specified security group.
tag_keystringTag key.
tag_valuestringTag value.
regionstringAWS region.

Methods

NameAccessible byRequired Params
list_resourcesSELECTregion

SELECT examples

Expands tags for all security_groups in a region.

SELECT
region,
group_description,
group_name,
vpc_id,
id,
security_group_ingress,
security_group_egress,
group_id,
tag_key,
tag_value
FROM aws.ec2.security_group_tags
WHERE region = 'us-east-1';

Permissions

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