VM::EC...yGroup(3pm)
π VM::EC2::DB::SecurityGroup β it's giving RDS Database Security Group energy π
okay bestie, so this page lives in the User Contributed Perl Documentation section of the manual, and it's literally called VM::EC2::DB::SecurityGroup(3pm). It's an RDS Database Security Group object and it is so much less scary than it sounds. Let's get into it β¨
β¨ SYNOPSIS β¨
here's the vibe, copy-paste ready, no cap:
$ec2 = VM::EC2->new(...);
@sg = $ec2->describe_db_security_groups;
foreach $group (@sg) {
print $_,"\n" foreach $group->IPRanges;
print $_->group_name,"\n" foreach $group->EC2SecurityGroups;
}
likeβ¦ you spin up your $ec2, you ask for all the db security groups, and then for each group you're printing the IP ranges and the EC2 security groups by name. slay π
πΈ METHODS πΈ
every one of these is a method on the object, bestie. here's the full roster, nothing skipped, we don't do that here:
DBSecurityGroupDescriptionβ the description of the DB security group πDBSecurityGroupNameβ the name of the DB security group π·οΈEC2SecurityGroupsβ the EC2 security groups that are enabled in the DB group π₯IPRangesβ the IP Ranges that are enabled in the DB group πOwnerIdβ the Owner ID of the DB security group πVpcIdβ the VPC ID of the DB security group π¦ec2_security_groupsβ alias forEC2SecurityGroups(same thing, lowercase core)ip_rangesβ alias forIPRanges(again, same thing, just chiller)
bestie note: those last two are aliases, not separate features.ec2_security_groups=EC2SecurityGroups,ip_ranges=IPRanges. pick whichever one matches your vibe, they're identical. π
π«Ά DESCRIPTION π«Ά
so this object represents a DB Security Group. that's it, that's the whole thing. it's the resultant output of these four calls:
VM::EC2->describe_db_security_groups()VM::EC2->authorize_db_security_group_ingress()VM::EC2->create_db_security_group()VM::EC2->revoke_db_security_group_ingress()
so whether you're describing, creating, authorizing ingress, or revoking ingress β if a DB security group comes back, it comes back as one of these. iconic behavior honestly β
π STRING OVERLOADING π
when you use this object in a string context, it outputs the DB Security Group Name. that's the whole section, but it's an important one β it means you can just print the thing and get the name. main character energy fr fr π
π SEE ALSO π
go read these too, they're the friend group:
VM::EC2VM::EC2::GenericVM::EC2::DB::Instance
π AUTHOR π
Lance Kinley <lkinley@loyaltymethods.com>.
Copyright (c) 2013 Loyalty Methods, Inc.
This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.
okay and that's the whole page bestie!! π¦ this was perl v5.38.2, dated 2024-08-10, and the manual page is VM::EC...yGroup(3pm) (yes the name gets truncated like that, it's the terminal's fault not ours π). go forth and describe your db security groups, you've got this, periodt πβ¨π
π¦ where this page comes from
- debian trixie: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu resolute: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu stonking: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms