title: Boto3 delete security group by group id
body: <p>I am trying to use Boto3 to delete security group by ID. I can't seem to figure this out so I'll give SOF a try. Here is the snippet:</p>
  
  <pre><code>       if sgid:
             client = boto3.client('ec2',region_name=region,aws_access_key_id=access_key,aws_secret_access_key=secret_key)
             delete_sg = ec2.delete_security_group(GroupId=sgid)
             log.info("SG Deleted")
         else:
             log.warning("No SG Provided.. But that's OK..")
  </code></pre>
  
  <p>When I run the script I get:</p>
  
  <pre><code>2019-03-02 19:16:54 T1000 __main__[8155] ERROR 'ec2.ServiceResource' object has no attribute 'delete_security_group'
  </code></pre>
  
  <p>Any ideas on how to fix? Let me know if more info is needed.</p>