今回は、指定したEIPを自分自身(EC2)に付け替えるPHPスクリプトを紹介します。 #!/usr/bin/php require_once("/opt/aws/php/default/sdk.class.php"); define("EIP", "xxx.xxx.xxx.xxx"); $ec2 = new AmazonEC2(array( "key" => "ACCESS KEY", "secret" => "SECRET KEY" )); $ec2->set_region(AmazonEC2::REGION_APAC_NE1); $response = $ec2->disassociate_address(EIP); if(!$response->isOK()) { error_log("[" . $response->body->Errors->Error->Code . "] "
