Open bizm opened 4 years ago
For now made it work with this temporary fix:
(s/def ::get-azs (s/keys :req [::values/type ::index]))
(defmethod values/value-type ::get-azs [_] ::get-azs)
(defmethod values/encode-value ::get-azs [{:keys [::index]}]
{"Fn::Select" [index {"Fn::GetAZs" ""}]})
(defn get-azs [index]
{::values/type ::get-azs
::index index})
but obviously there should be some better way.
Hey there @bizm sorry I didn't see your issue. I'll give you a shout when I've had a proper look.
Not sure how to implement Fn::GetAZs function so that i can have something like
or
Tried this one
but getting this error
However it doesn't fail if i change subnet code to
but in that case it produces code like
which is not correct.