Net::Am...stances(3)
π Net::Amazon::EC2::RunningInstances π
okay bestie, so this page is from the User Contributed Perl Documentation collection β it's the manual for Net::Amazon::EC2::RunningInstances, and no cap, it's a whole mood. it's short, it's sweet, it's literally just vibes and attribute lists. let's get into it β¨
β¨ NAME β¨
Net::Amazon::EC2::RunningInstances β the class that represents a running instance. that's it. that's the whole job. she's a data holder and she's slaying at it π
πΈ DESCRIPTION πΈ
A class representing a running instance. periodt. π«Ά
like, when you're out here talking to Amazon EC2 and it hands you back an instance that's up and running, this is the little object wrapper you get to poke at. it's giving "structured data, but make it a Perl object." iconic behavior, honestly. π
π ATTRIBUTES π
here's the full roster, bestie. every single one, in order, no skipping, no summarizing, we do not do that here. some are required and some are optional β pay attention to which is which because the required ones are, like, non-negotiable. β
ami_launch_index(optional) β the AMI launch index. use it to find this specific instance inside the launch group. she's your little finder-hint π¦dns_name(optional) β the public DNS name assigned to the instance. this one is contactable from outside the Amazon EC2 network. heads up tho: this element stays empty until the instance enters arunningstate. so don't come for her while she's still waking up πimage_id(required) β the image id of the AMI that's currently running in this instance. mandatory, bestie.kernel_id(required) β the kernel id of the AKI currently running in this instance. also mandatory.ramdisk_id(required) β the ramdisk id of the ARI loaded in this instance. yep, required too.instance_id(required) β the instance id of the launched instance. the whole point, fr fr.instance_state(required) β anNet::Amazon::EC2::InstanceStateobject. πinstance_type(required) β the type of instance that got launched.key_name(optional) β the key pair name the instance was launched with. πlaunch_time(required) β the time the instance was started.placement(required) β aNet::Amazon::EC2::PlacementResponseobject.private_dns_name(optional) β the private DNS name assigned to the instance. this one can only be used inside the Amazon EC2 network. and same deal as her public sister: this element stays empty until the instance enters arunningstate. πproduct_codes(optional) β an array ref ofNet::Amazon::EC2::ProductCodeobjects.reason(optional) β the reason for the most recent state transition.platform(optional) β the operating system for this instance.monitoring(optional) β the state of monitoring on this instance. πsubnet_id(optional) β specifies the subnet ID in which the instance is running (Amazon Virtual Private Cloud).vpc_id(optional) β specifies the VPC in which the instance is running (Amazon Virtual Private Cloud).private_ip_address(optional) β specifies the private IP address that is assigned to the instance (Amazon VPC).ip_address(optional) β specifies the IP address of the instance.state_reason(optional) β the reason for the state change.
a Net::Amazon::EC2::StateReason object. π§
architecture(optional) β the architecture of the image.root_device_name(optional) β the root device name (e.g.,/dev/sda1).root_device_type(optional) β the root device type used by the AMI. the AMI can use an Amazon EBS or instance store root device.block_device_mapping(optional) β an array ref ofNet::Amazon::EC2::BlockDeviceMappingobjects.tag_set(optional) β an array ref ofNet::Amazon::EC2::TagSetobjects.name(optional) β the instance name from tags. π
π AUTHOR π
Jeff Kim <cpan@chosec.com> β shoutout to the author, absolute legend, we love to see it. π
β COPYRIGHT β
Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
lowkey important: the required/optional labels above are exactly as the page says them, so if you're out here building one of these by hand, don't skip the required ones or it's gonna be a bad time π
and that's the whole page, bestie! this one came bundled with perl v5.42.0 and the doc is dated 2025-07-25 β so yeah, she's recent, she's fresh, she's still cute. go forth and parse your instances ππβ¨
π¦ where this page comes from
- fedora 43: perl-Net-Amazon-EC2 0.36-23.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms