-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example in the README does not work #3
Comments
Tried the following variation with no luck (what i successfully use with the aws package for S3) notify :: Text -> RIO ()
notify s =
liftIO $ do
cfg <- Aws.baseConfiguration
maybeCreds <- Aws.loadCredentialsFromEnv
case maybeCreds of
Nothing ->
putStrLn "Please set the environment variables AWS_ACCESS_KEY_ID and AWS_ACCESS_KEY_SECRET"
Just creds -> do
let snsCfg = SnsConfiguration HTTPS UsEast1
print =<< simpleAws cfg{credentials = creds} snsCfg (ListTopics Nothing) |
Thanks a lot for reporting these issues (and the other issues). I don't On 2015-08-30 16:06, Alex Babkin wrote:
Links:[1] |
Thanks for the response Lars. No real rush. |
I'm recieving the same error in what should be production code. I'm neck-deep in this right now and would be willing to make the modifications to make it work if I knew where to look. |
@greyson - looks like this repo is no longer maintained |
@ababkin Thanks. And Ouch; that means I'll want to rewrite my Yesod/AWS integration. |
I would really like to see a simple example of sending a SNS message using AWS credentials in environment variables. (It's trivial to get them from the environment, but i cannot figure out how to put them into aws-sns)
The existing example below does not work.
It looks like
creds
is not used anywhere.Getting this error (which makes sense, because credentials are not passed correctly)
The text was updated successfully, but these errors were encountered: