amazon web services - Delete vpc request leaves VPC in inconsistent state(aws-java-sdk) -
i have tried deleting vpc -
private static void deletevpc(string vpcid) { deletevpcrequest deletevpc = new deletevpcrequest(); deletevpc.setvpcid(vpcid); ec2.deletevpc(deletevpc); system.out.println("deleted vpc"+vpcid); }
it responds when log in aws console vpc still there #bad string attached vpc id (vpc-7d1bad12). why might happening ?
7d1bad12 hex string , not normal string. assume gave delete request , shortly logged system , saw vpc still existing. vpc deletion time consuming process , takes time before vpc deleted. when api says returned means sdk able send delete request , delete request asynchronous , therefore, returns immediately. if vpc empty after time should go away aws console.
Comments
Post a Comment