Closed AngeloChecked closed 1 year ago
Amazonka 1.6.1 has a very strict parser when it comes to enums, and will throw if it sees a value that it doesn't expect. This affects things like EC2 instance types, as well as AWS regions, etc. 1.6.1 is many years out of date and there will be no more releases in the 1.6 line.
Use the latest commit on main
, following the instructions in the 2.0RC1 release announcement. 2.0 has much better sum type handling, in that it doesn't explode when presented with new enum value, and also the ACM bindings will be new enough to have a binding for that Key algorithm. I hope to tag 2.0RC2 soon, and get something up on Hackage some time after that.
P.S.: Since you said you were new, I thought I might offer some tips:
runResourceT
- this gives you better reuse of resources, and should you start working with streaming responses (e.g., from S3), prevents the connections from being closed before you consume the response body.(^. csCertificateARN)
you can use the function view
from lens
((^.) = flip view
)env <- newEnv discover
with a lowercase D.Feel free to reply here if you have further questions.
i done a simple script in order to summary my aws certificates:
i receive this error:
In the log i can see the whole response of the service and it's correct with 200. But the program terminate with an error. I don't understand the problem. There a library problem or i done wrong something? i'm using ghcup, cabal 3.6.2 and ghc 8.10.7 (i'm a haskell noob)