capistrano-autoscale 1.0.11 → 1.0.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 485d9a4e14927e747e353d34d6cb2d930a67098457402530266d6835efcb4efc
4
- data.tar.gz: b1366f63f2ae456d89bc50a9b73b999f10320d7588d5aa266ff6400c5fd7916c
3
+ metadata.gz: 2d4e27d5c31d079de33330294545cd0fcf8d42dca2a7a3153e3de87756c613c8
4
+ data.tar.gz: bfaa3180fac48455b78f04c8798ef52e836eda71bd8395204044622a5ffc5efc
5
5
  SHA512:
6
- metadata.gz: 51e3a5214491bd0bbbe5f839b7aaaa54c30fef3b17ee8fa52f44f8e4df9d82356761721f03d4f4b4d21e5b3ffcfbd14cbf7b64ac3b33a27233ed5b7ed91b210a
7
- data.tar.gz: ac1c64879ca4ccd709920d17e117ec64c960c076f081eba84c483b9956cfb7b6b1f7586dcfacd1e9e6e04d00e45cac95861397dbcc9fb3da3feb155bcb148360
6
+ metadata.gz: 6a20ec872161752e1f8cb8a245fbdce7d8a8e8a5765d6e71c4e946e02fe5776edc2c805c056572a5bb9069c08ebf1688f9411d2053b4c52b00afc69ac6bfb7ef
7
+ data.tar.gz: '078363011a66a90fee4e8533db90663e8c2423ab7d9a739dcefa9af1532d47f8dcbc13ff3a1bea2de798c9a461e2283a6b8da083d1d3d560e4abddd1b6fbe980'
data/README.md CHANGED
@@ -15,16 +15,23 @@ Add this statement to your Capfile:
15
15
 
16
16
  ## Configuration
17
17
 
18
- Below are the Capistrano configuration options with their defaults:
18
+ Below are the Capistrano configuration options with their defaults (session_token is optional):
19
19
 
20
20
  ```
21
21
  set :aws_access_key_id, ENV['AWS_ACCESS_KEY_ID']
22
22
  set :aws_secret_access_key, ENV['AWS_SECRET_ACCESS_KEY']
23
+ set :aws_session_token, ENV['AWS_SESSION_TOKEN']
23
24
  set :aws_region, ENV['AWS_REGION']
24
25
  ```
25
26
 
26
- And set the autoscale group:
27
+ And set the autoscale group using IP Address:
27
28
 
28
29
  ```
29
- autoscale [<array of auto-scale-group-names>], user: '<deployment user>', roles: [<array of cap roles>]
30
- ```
30
+ autoscale [<array of auto-scale-group-names>], :ip_address, user: '<deployment user>', roles: [<array of cap roles>]
31
+ ```
32
+
33
+ Or, set the autoscale group using EC2 Instance Id:
34
+
35
+ ```
36
+ autoscale [<array of auto-scale-group-names>], :instance_id, user: '<deployment user>', roles: [<array of cap roles>]
37
+ ```
@@ -9,6 +9,7 @@ module Capistrano
9
9
  access_key_id: fetch(:aws_access_key_id, ENV['AWS_ACCESS_KEY_ID']),
10
10
  secret_access_key: fetch(:aws_secret_access_key, ENV['AWS_SECRET_ACCESS_KEY'])
11
11
  }
12
+ credentials.merge! session_token: fetch(:aws_session_token, ENV['AWS_SESSION_TOKEN']) if fetch(:aws_session_token, ENV['AWS_SESSION_TOKEN'])
12
13
  credentials.merge! region: fetch(:aws_region) if fetch(:aws_region)
13
14
  credentials
14
15
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Autoscale
3
- VERSION = '1.0.11'
3
+ VERSION = '1.0.12'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-autoscale
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Glancy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-15 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.1.4
168
+ rubygems_version: 3.1.2
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Capistrano plugin for deploying to AWS AutoScale groups.