middleman-aws 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 128306ee099cc7965b6dbfabbffaff57afe0fcee
4
- data.tar.gz: 3916fad18988c321d16fa35e2a00f4a81058fd50
3
+ metadata.gz: 7750b1175743ef7387650a3d4f4563159e9b8317
4
+ data.tar.gz: bc38b6e7126652c6b67e894fd9973ff6db7a8e6f
5
5
  SHA512:
6
- metadata.gz: fc5ac87054c46363924561ead0edfdca6af601cdc57a356eb06f561a8c7e61b76821dedc341e13dc175437d0607b73ecf6f16714fde12d3ee4b9b364bb3eb976
7
- data.tar.gz: e8c5ce3f8456906bee8243e4a2a799abd89ac48ba124a8e8374fb6a0c2fd52476ac4c02139885acc3487aaae3fff5743390a023b710eee5884367ab578afde75
6
+ metadata.gz: fc66186d8aa9d340a137e2893d5580487ecaa86784b2bec28c1fcbd45804f45ac688c663f2a08b99dad00f9c8bf5e743098e839794375c128a0821796eacc6ba
7
+ data.tar.gz: fe4a52e1fe0c51403f2781bfab6a0951f2bf5ad98cdba9e11aab8b8a5e3c2ba6fa75c4fa4adadaff61b39d277443103e8ec9ab22706d8861512f14e68959bdf1
data/README.md CHANGED
@@ -21,11 +21,12 @@ Simple set of [middleman](http://middlemanapp.com/) rake tasks to build and depl
21
21
  gem 'middleman-cloudfront'
22
22
 
23
23
 
24
- ### Step 3: Add your aws credentials
24
+ ### Step 3: AWS credentials
25
+
26
+ #### Option 1 - secrets file
25
27
  e.g. `~/.aws/acme.yml`
26
28
 
27
- This should contain the access and secret keys generated from the selected IAM user. This is the only file that will need to reside
28
- outside the repository. `acme` is equivalent to the directory name for your project.
29
+ This should contain the access and secret keys generated from the selected IAM user. This is the only file that will need to reside outside the repository. `acme` is equivalent to the directory name for your project.
29
30
  Don't worry, validation will make sure you have the path right.
30
31
 
31
32
  ```ruby
@@ -33,7 +34,11 @@ access_key_id: XXXXXX
33
34
  secret_access_key: XXXXXX
34
35
  ```
35
36
 
36
- If you don't create config file, then environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` will be used. If there are no such variables, then request to AWS will fail (unless middleman-aws is used on EC2 instance with correct IAM role, then AWS will take care of authorising requests).
37
+ #### Option 2 - ENV variables
38
+ If you don't create secrets file, then environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` will be used.
39
+
40
+ #### Option 3 - IAM
41
+ If a secrets file is not present (option 1), there are no ENV variables (option 2), then request to AWS will fail (unless middleman-aws is used on EC2 instance with correct IAM role, then AWS will take care of authorising requests).
37
42
 
38
43
  ### Step 4: Add the necessary s3_sync and Cloudfront sections to your config
39
44
  This is a sample of how a common config is setup with variables extracted:
@@ -72,7 +72,7 @@ namespace :mm do
72
72
  secret_access_key = credentials.fetch('secret_access_key') { ENV['AWS_SECRET_ACCESS_KEY'] }
73
73
 
74
74
  {
75
- access_key_id: access_key_id
75
+ access_key_id: access_key_id,
76
76
  secret_access_key: secret_access_key
77
77
  }
78
78
  end
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'middleman-aws'
6
- s.version = '1.0.0'
6
+ s.version = '1.0.1'
7
7
  s.platform = Gem::Platform::RUBY
8
8
 
9
9
  s.authors = ['Kevin Ross']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ross
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-16 00:00:00.000000000 Z
11
+ date: 2015-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-s3_sync