   (assoc opts :IpRanges val))
 
 (defn- first-level [sub-key opts]
- (map #(nested-level opts %1) (get opts sub-key)))
+  (map #(nested-level opts %1) (get opts sub-key)))
 
 (defn- expand [opts key sub-key]
   (flatten (map #(first-level sub-key %1) (get opts key))))

         params
         (for [[k v] params :when (nil? v)] k)))

(defn in?
  "true if seq contains element"
  [seq element]
  (some #(= element %) seq))

(defn- process-list-of-maps [func opts]
  (loop [count (count opts)

(defn- compare-config
  "Returns a list of two vectors
   First vector is what is present in the remote config , which are not present in the local config
   and the second vector is those present in the local config, which are not applied to the aws config yet"
  [local remote]
  (concat (list (vec (filter #(not (in? (set local) %)) (set remote))))
          (list (vec (filter #(not (in? (set remote) %)) (set local))))))
