EC2 Instances¶
Provider: AWS
Service ID: ec2
Rendering: Standard table with expandable detail rows
Quick Example¶
<!-- 1. the key, once per page -->
<script>window.lpEmbed = { accessKey: 'lp_ak_YOUR_ACCESS_KEY' };</script>
<!-- 2. the loader, once per page -->
<script src="https://lightpane.io/embed/lp.js"></script>
<!-- 3. one container per pane -->
<div data-lp-service="ec2"
data-lp-account="YOUR_ACCOUNT_HANDLE"
data-lp-region="eu-west-2"
data-lp-attributes="name,instance_id,instance_type,state,private_ip,public_ip"></div>
Default Attributes¶
When no attributes array is specified, these columns are displayed:
attributes: ['name', 'instance_id', 'instance_type', 'state', 'private_ip', 'public_ip', 'subnet_id', 'vpc_id', 'key_name', 'launch_time', 'tags']
All Attributes¶
| Attribute | Display Name | Format | Description |
|---|---|---|---|
name |
Name | text |
Resource display name (from tags or identifier) |
instance_id |
Instance ID | text |
From API field: InstanceId |
instance_type |
Instance type | text |
From API field: InstanceType |
image_id |
AMI ID | text |
From API field: ImageId |
state |
State | status_badge |
From API field: State.Name |
private_ip |
Private IP | text |
From API field: PrivateIpAddress |
public_ip |
Public IP | text |
From API field: PublicIpAddress |
vpc_id |
VPC ID | text |
From API field: VpcId. Resolved to vpc name when available |
subnet_id |
Subnet ID | text |
From API field: SubnetId. Resolved to subnet name when available |
key_name |
Key name | text |
From API field: KeyName |
launch_time |
Launch time | datetime |
From API field: LaunchTime |
state_transition_reason |
State transition | text |
From API field: StateTransitionReason |
availability_zone |
Availability Zone | text |
From API field: Placement.AvailabilityZone |
platform |
Platform | text |
From API field: PlatformDetails. Default: Linux/UNIX |
architecture |
Architecture | text |
From API field: Architecture |
ami_id |
AMI ID | text |
From API field: ImageId |
iam_role |
IAM role | arn_name |
From API field: IamInstanceProfile.Arn |
security_groups |
Security groups | tag_list |
From API field: SecurityGroups[*].GroupName |
root_device_type |
Root device | text |
From API field: RootDeviceType |
ebs_optimized |
EBS optimized | boolean |
From API field: EbsOptimized |
monitoring |
Monitoring | text |
From API field: Monitoring.State |
tags |
Tags | tags_table |
All tags/labels as a key-value table |
= included in default view
Sort Order¶
Results are sorted by: name, instance_id