diff --git a/aws-ec2.cabal b/aws-ec2.cabal
--- a/aws-ec2.cabal
+++ b/aws-ec2.cabal
@@ -1,5 +1,5 @@
 name: aws-ec2
-version: 0.3.5
+version: 0.3.6
 cabal-version: >=1.10
 build-type: Simple
 license: BSD3
@@ -16,7 +16,7 @@
 source-repository this
     type: git
     location: https://github.com/memcachier/aws-ec2.git
-    tag: 0.3.5
+    tag: 0.3.6
 
 source-repository head
     type: git
diff --git a/src/Aws/Ec2/Types.hs b/src/Aws/Ec2/Types.hs
--- a/src/Aws/Ec2/Types.hs
+++ b/src/Aws/Ec2/Types.hs
@@ -75,7 +75,7 @@
 
 data SgPermission = IpPermission IpProtocol (Maybe Int) (Maybe Int) [CidrIp]
                   | SgPermission IpProtocol (Maybe Int) (Maybe Int) [SgGroupId]
-                deriving (Show)
+                deriving (Eq, Show)
 
 
 data Region = Region { regionEndpoint :: T.Text
@@ -423,6 +423,7 @@
     show (IOPSSD _) = "io1"
 
 data IpProtocol = TCP | UDP | ICMP | Proto Int | All
+  deriving Eq
 
 instance Show IpProtocol where
     show TCP = "tcp" -- 6
