forked from ex-aws/ex_aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
83 lines (77 loc) · 2.12 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
defmodule ExAws.Mixfile do
use Mix.Project
def project do
[app: :ex_aws,
version: "0.4.10",
elixir: "~> 1.0",
description: "AWS client. Currently supports Dynamo, Kinesis, Lambda, S3, SQS",
name: "ExAws",
source_url: "https://github.com/cargosense/ex_aws",
package: package,
dialyzer: [flags: "--fullpath"],
deps: deps]
end
def application do
[applications: [:logger, :crypto],
mod: {ExAws, []},
env: env]
end
defp deps do
deps(:test_dev)
end
defp deps(:test_dev) do
[
{:sweet_xml, "~> 0.2.1", optional: true},
{:earmark, "~> 0.1", only: :dev},
{:ex_doc, "~> 0.7", only: :dev},
{:httpoison, "~> 0.7", optional: true},
{:poison, "~> 1.2", optional: true},
{:ibrowse, github: "cmullaparthi/ibrowse", tag: "v4.1.2", optional: true},
{:httpotion, "~> 2.0", optional: true},
{:jsx, "~> 2.5", optional: true}
]
end
defp package do
[description: "AWS client. Currently supports Dynamo, Kinesis, Lambda, S3",
files: ["lib", "config", "mix.exs", "README*"],
contributors: ["Ben Wilson"],
licenses: ["MIT"],
links: %{github: "https://github.com/CargoSense/ex_aws"}]
end
defp env do
[
access_key_id: [{:system, "AWS_ACCESS_KEY_ID"}, :instance_role],
secret_access_key: [{:system, "AWS_SECRET_ACCESS_KEY"}, :instance_role],
http_client: ExAws.Request.HTTPoison,
json_codec: Poison,
kinesis: [
scheme: "https://",
host: "kinesis.us-east-1.amazonaws.com",
region: "us-east-1",
port: 80
],
dynamodb: [
scheme: "https://",
host: "dynamodb.us-east-1.amazonaws.com",
region: "us-east-1",
port: 80
],
lambda: [
host: "lambda.us-east-1.amazonaws.com",
scheme: "https://",
region: "us-east-1",
port: 80
],
s3: [
scheme: "https://",
host: "s3.amazonaws.com",
region: "us-east-1"
],
sqs: [
scheme: "https://",
host: "sqs.us-east-1.amazonaws.com",
region: "us-east-1"
]
]
end
end