| Server IP : 52.25.153.185 / Your IP : 216.73.216.95 Web Server : Apache System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : daemon ( 1) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/awscli/examples/lightsail/ |
Upload File : |
**To detach a static IP from an instance**
The following ``detach-static-ip`` example detaches static IP ``StaticIp-1`` from any attached instance. ::
aws lightsail detach-static-ip \
--static-ip-name StaticIp-1
Output::
{
"operations": [
{
"id": "2a43d8a3-9f2d-4fe7-bdd0-eEXAMPLE3cf3",
"resourceName": "StaticIp-1",
"resourceType": "StaticIp",
"createdAt": 1571088261.999,
"location": {
"availabilityZone": "all",
"regionName": "us-west-2"
},
"isTerminal": true,
"operationDetails": "MEAN-1",
"operationType": "DetachStaticIp",
"status": "Succeeded",
"statusChangedAt": 1571088261.999
},
{
"id": "41a7d40c-74e8-4d2e-a837-cEXAMPLEf747",
"resourceName": "MEAN-1",
"resourceType": "Instance",
"createdAt": 1571088262.022,
"location": {
"availabilityZone": "us-west-2a",
"regionName": "us-west-2"
},
"isTerminal": true,
"operationDetails": "StaticIp-1",
"operationType": "DetachStaticIp",
"status": "Succeeded",
"statusChangedAt": 1571088262.022
}
]
}