Exaws firehose example?

Hi there,

I was looking at amazon kinesis firehose and wanted to try to use the exaws firehose library to call the api to write data to. But I’m not sure what the record should look like and I couldn’t find any tutorials on it.

I cant seem to get the package when i tried mix.deps.get
{:ex_aws, “~> 2.0”},
{:ex_aws_firehose, “~> 2.0”},
{:poison, “~> 3.0”},
{:hackney, “~> 1.9”},
** (Mix) No matching version for ex_aws ~> 2.0 (from: mix.exs) in registry

If anyone has resources on this, would greatly appreciate it.

Update:
I was able to put_record in using
ExAws.Firehose.put_record_batch with the delivery stream and just some data string.
Ir returns :ok but I cant seem to see it on s3?

Thanks! =)

Of course… According to https://hex.pm/packages/ex_aws the most recent version is 1.1.5. It also points out that you should use {:ex_aws, "~> 1.1"} as dependency spec.

ok thanks! cause i was following this guide.

maybe its still in development =)

As a workaround you can use a git-dependency.

For ex_aws it needs to look roughly like this:

{:ex_aws, github: "ex-aws/ex_aws", branch: "master"}

You should be aware of braking changes regularly when doing this and not working stuff in general :wink:

1 Like

thanks :slight_smile: