. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 52.223.31.75 / Your IP : 172.31.6.220 [ Web Server : Apache/2.4.66 () OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux ip-172-31-14-81.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE Domains : 4 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /lib/python2.7/site-packages/awscli/examples/lightsail/ |
Upload File : |
**To get information about an instance**
The following ``get-instance`` example displays details about the instance ``MEAN-1``. ::
aws lightsail get-instance \
--instance-name MEAN-1
Output::
{
"instance": {
"name": "MEAN-1",
"arn": "arn:aws:lightsail:us-west-2:111122223333:Instance/bd470fc5-a68b-44c5-8dbc-EXAMPLE4bada",
"supportCode": "6EXAMPLE3362/i-05EXAMPLE407c97d3",
"createdAt": 1570635023.124,
"location": {
"availabilityZone": "us-west-2a",
"regionName": "us-west-2"
},
"resourceType": "Instance",
"tags": [],
"blueprintId": "mean_4_0_9",
"blueprintName": "MEAN",
"bundleId": "medium_2_0",
"isStaticIp": false,
"privateIpAddress": "192.0.2.0",
"publicIpAddress": "192.0.2.0",
"hardware": {
"cpuCount": 2,
"disks": [
{
"createdAt": 1570635023.124,
"sizeInGb": 80,
"isSystemDisk": true,
"iops": 240,
"path": "/dev/sda1",
"attachedTo": "MEAN-1",
"attachmentState": "attached"
}
],
"ramSizeInGb": 4.0
},
"networking": {
"monthlyTransfer": {
"gbPerMonthAllocated": 4096
},
"ports": [
{
"fromPort": 80,
"toPort": 80,
"protocol": "tcp",
"accessFrom": "Anywhere (0.0.0.0/0)",
"accessType": "public",
"commonName": "",
"accessDirection": "inbound"
},
{
"fromPort": 22,
"toPort": 22,
"protocol": "tcp",
"accessFrom": "Anywhere (0.0.0.0/0)",
"accessType": "public",
"commonName": "",
"accessDirection": "inbound"
},
{
"fromPort": 443,
"toPort": 443,
"protocol": "tcp",
"accessFrom": "Anywhere (0.0.0.0/0)",
"accessType": "public",
"commonName": "",
"accessDirection": "inbound"
}
]
},
"state": {
"code": 16,
"name": "running"
},
"username": "bitnami",
"sshKeyName": "MyKey"
}
}