aws_client 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +70 -1
- data/aws_client-0.0.1.gem +0 -0
- data/aws_client.gemspec +1 -1
- data/lib/aws_client/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a68ecc8d49db232b896160d304946501e56072b
|
4
|
+
data.tar.gz: 9be7f394a8ac196d416fb6fd6b67670470bdfc91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c26ba01a0b5dd0d559c00604acb8734958fa9791cbe9c2a40597057a9e7fc6b40d262e5234c7a59eafc56a62e361aa7ec66c2235e7d421b261984d60f07bb9a4
|
7
|
+
data.tar.gz: 58b1225923c91e4ebe0e4726d78c635373624fd2712badcf6d9b2f0669897eea42afc122274856d879c47067987ce4c94107836d6f9580c6300514b79d3058f7
|
data/README.md
CHANGED
@@ -1,4 +1,73 @@
|
|
1
1
|
# AwsClient
|
2
2
|
|
3
|
-
|
3
|
+
This gem wraps access to various AWS APIs under one umbrella. The following are configured:
|
4
4
|
|
5
|
+
* RDS
|
6
|
+
* Cloudformation
|
7
|
+
* S3
|
8
|
+
* EC2
|
9
|
+
|
10
|
+
It exposes access to the above APIs from a single flex-point.
|
11
|
+
|
12
|
+
## Rationale
|
13
|
+
|
14
|
+
The use cases covered are in no way exhaustive - this aids in solving very specific problems.
|
15
|
+
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
### Assumptions
|
19
|
+
|
20
|
+
You will need a file named .fog in your home directory. The format is as follows:
|
21
|
+
|
22
|
+
```
|
23
|
+
ORG_KEY:
|
24
|
+
aws_access_key_id: ACCESS_KEY
|
25
|
+
aws_secret_access_key: SECRET_ACCESS_KEY
|
26
|
+
```
|
27
|
+
|
28
|
+
then you will need to
|
29
|
+
|
30
|
+
```
|
31
|
+
gem install aws_client
|
32
|
+
```
|
33
|
+
|
34
|
+
Then include it in your project
|
35
|
+
|
36
|
+
```
|
37
|
+
require 'aws_client'
|
38
|
+
```
|
39
|
+
|
40
|
+
### Usage
|
41
|
+
|
42
|
+
#### Connnecting
|
43
|
+
|
44
|
+
```
|
45
|
+
# ::AwsClient::Container.new(ORG_KEY, AWS_REGION, PROVISIONING_REGION) e.g.
|
46
|
+
aws_clients = ::AwsClient::Container.new(ORG_KEY, "eu-west", "eu-west-1")
|
47
|
+
|
48
|
+
# Rds client wrapper
|
49
|
+
rds_client = aws_clients.rds
|
50
|
+
|
51
|
+
# Cloudformation client wrapper
|
52
|
+
cf_client = aws_clients.cloudformation
|
53
|
+
|
54
|
+
# S3 client wrapper
|
55
|
+
s3_client = aws_clients.s3
|
56
|
+
|
57
|
+
# EC2 client wrapper
|
58
|
+
ec2_client = ec2_client.ec2
|
59
|
+
```
|
60
|
+
|
61
|
+
Each client wrapper above is merely a wrapper for the underlying AWS client, from which the underlying client may be exposed, e.g.
|
62
|
+
|
63
|
+
```
|
64
|
+
aws_clients = ::AwsClient::Container.new("My organisation", "eu-west", "eu-west-1")
|
65
|
+
|
66
|
+
# Wrapper
|
67
|
+
rds_client = aws_clients.rds
|
68
|
+
|
69
|
+
# Underlying client
|
70
|
+
underlying_client = rds_client.client
|
71
|
+
```
|
72
|
+
|
73
|
+
Each client wrapper exposes some additional functionality useful to me, but may easily be monkey patched to add functionality (I find working with AWS APIs often exhausting, especially when working with Cloudformation where orchestration tasks may involve the use of multiple APIs in sequence).
|
Binary file
|
data/aws_client.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Light-weight AWS wrapper.}
|
13
13
|
spec.description = %q{A very light-weight wrapper for my most commonly used AWS functions}
|
14
|
-
spec.homepage = "
|
14
|
+
spec.homepage = "https://github.com/webzakimbo/aws_client"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
data/lib/aws_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Webzakimbo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- LICENSE.txt
|
65
65
|
- README.md
|
66
66
|
- Rakefile
|
67
|
+
- aws_client-0.0.1.gem
|
67
68
|
- aws_client.gemspec
|
68
69
|
- bin/console
|
69
70
|
- bin/setup
|
@@ -74,7 +75,7 @@ files:
|
|
74
75
|
- lib/rds_wrapper.rb
|
75
76
|
- lib/s3_wrapper.rb
|
76
77
|
- lib/wrapper.rb
|
77
|
-
homepage:
|
78
|
+
homepage: https://github.com/webzakimbo/aws_client
|
78
79
|
licenses:
|
79
80
|
- MIT
|
80
81
|
metadata: {}
|