ruby_aem_aws 2.2.2 → 2.3.0
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 +5 -5
- data/conf/gem.yaml +1 -1
- data/lib/ruby_aem_aws/abstract/grouped_component.rb +0 -1
- data/lib/ruby_aem_aws/abstract/single_component.rb +0 -1
- data/lib/ruby_aem_aws/abstract/snapshot.rb +0 -1
- data/lib/ruby_aem_aws/architecture/full_set_stack.rb +1 -0
- data/lib/ruby_aem_aws/architecture/stack_manager.rb +1 -0
- data/lib/ruby_aem_aws/client/cloudwatch.rb +1 -2
- data/lib/ruby_aem_aws/component/author_dispatcher.rb +1 -0
- data/lib/ruby_aem_aws/component/author_primary.rb +1 -0
- data/lib/ruby_aem_aws/component/author_publish_dispatcher.rb +1 -0
- data/lib/ruby_aem_aws/component/author_standby.rb +1 -0
- data/lib/ruby_aem_aws/component/chaos_monkey.rb +1 -0
- data/lib/ruby_aem_aws/component/orchestrator.rb +1 -0
- data/lib/ruby_aem_aws/component/publish.rb +1 -0
- data/lib/ruby_aem_aws/component/publish_dispatcher.rb +1 -0
- data/lib/ruby_aem_aws/component/stack_manager_resources.rb +1 -0
- data/lib/ruby_aem_aws/constants.rb +4 -4
- data/lib/ruby_aem_aws.rb +9 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 631ffea7c2e71618e87352d28061102390ef2005
|
4
|
+
data.tar.gz: f1cd6d63244d9f05caffce66d4755829f9430abc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53bb0273d04b6f930af17d0cd6465bf712d33aa962f09e57184e0b565ef64f57b48489dddb7c8220d0d8f13e58e23e5084618056c96834058adc406aad81d607
|
7
|
+
data.tar.gz: e33ea47a4e3abd0269e145af2f3235c09006469309bd6ebc35ae0a04ae732f6b6840903761a47e1aef90bcae519a46e536dc08f14561a84aa143551a34cd36fc
|
data/conf/gem.yaml
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version: 2.
|
1
|
+
version: 2.3.0
|
@@ -18,6 +18,7 @@ module RubyAemAws
|
|
18
18
|
# Interface to interact with AEM StackManager
|
19
19
|
class StackManager
|
20
20
|
attr_reader :sm_resources, :cloudformation_client
|
21
|
+
|
21
22
|
# @param stack_prefix AWS tag: StackPrefix
|
22
23
|
# @param params Array of AWS Clients and Resource connections:
|
23
24
|
# - CloudFormationClient: AWS Cloudformation Client.
|
@@ -52,8 +52,7 @@ module RubyAemAws
|
|
52
52
|
until curr_response.next_token.nil?
|
53
53
|
next_token = { next_token: curr_response.next_token }
|
54
54
|
filter.update(next_token)
|
55
|
-
|
56
|
-
response = curr_response unless curr_response.events.empty?
|
55
|
+
response = curr_response
|
57
56
|
curr_response = cloud_watch_log_client.filter_log_events(filter)
|
58
57
|
end
|
59
58
|
|
@@ -25,6 +25,7 @@ module RubyAemAws
|
|
25
25
|
# Interface to the AWS instances playing and supporting the AuthorDispatcher role in a full-set AEM stack.
|
26
26
|
class AuthorDispatcher
|
27
27
|
attr_reader :descriptor, :ec2_resource, :asg_client, :elb_client, :cloud_watch_client, :cloud_watch_log_client
|
28
|
+
|
28
29
|
include AbstractGroupedComponent
|
29
30
|
include AbstractSnapshot
|
30
31
|
include HealthyResourceVerifier
|
@@ -23,6 +23,7 @@ module RubyAemAws
|
|
23
23
|
# Interface to the AWS instance running the Author-Primary component of a full-set AEM stack.
|
24
24
|
class AuthorPrimary
|
25
25
|
attr_reader :descriptor, :ec2_resource, :cloud_watch_client, :cloud_watch_log_client
|
26
|
+
|
26
27
|
include AbstractSingleComponent
|
27
28
|
include AbstractSnapshot
|
28
29
|
include HealthyStateVerifier
|
@@ -24,6 +24,7 @@ module RubyAemAws
|
|
24
24
|
# Interface to a single AWS instance running all three AEM components as a consolidated stack.
|
25
25
|
class AuthorPublishDispatcher
|
26
26
|
attr_reader :descriptor, :ec2_resource, :cloud_watch_client, :cloud_watch_log_client
|
27
|
+
|
27
28
|
include AbstractSingleComponent
|
28
29
|
include AbstractSnapshot
|
29
30
|
include HealthyStateVerifier
|
@@ -23,6 +23,7 @@ module RubyAemAws
|
|
23
23
|
# Interface to the AWS instance running the Author-Standby component of a full-set AEM stack.
|
24
24
|
class AuthorStandby
|
25
25
|
attr_reader :descriptor, :ec2_resource, :cloud_watch_client, :cloud_watch_log_client
|
26
|
+
|
26
27
|
include AbstractSingleComponent
|
27
28
|
include AbstractSnapshot
|
28
29
|
include HealthyStateVerifier
|
@@ -24,6 +24,7 @@ module RubyAemAws
|
|
24
24
|
# Interface to the AWS instance running the ChaosMonkey component of a full-set AEM stack.
|
25
25
|
class ChaosMonkey
|
26
26
|
attr_reader :descriptor, :ec2_resource, :asg_client, :cloud_watch_client, :cloud_watch_log_client
|
27
|
+
|
27
28
|
include AbstractGroupedComponent
|
28
29
|
include AbstractSnapshot
|
29
30
|
include HealthyResourceVerifier
|
@@ -24,6 +24,7 @@ module RubyAemAws
|
|
24
24
|
# Interface to the AWS instance running the Orchestrator component of a full-set AEM stack.
|
25
25
|
class Orchestrator
|
26
26
|
attr_reader :descriptor, :ec2_resource, :asg_client, :cloud_watch_client, :cloud_watch_log_client
|
27
|
+
|
27
28
|
include AbstractGroupedComponent
|
28
29
|
include AbstractSnapshot
|
29
30
|
include HealthyResourceVerifier
|
@@ -24,6 +24,7 @@ module RubyAemAws
|
|
24
24
|
# Interface to the AWS instance running the Publish component of a full-set AEM stack.
|
25
25
|
class Publish
|
26
26
|
attr_reader :descriptor, :ec2_resource, :cloud_watch_client, :asg_client, :cloud_watch_log_client
|
27
|
+
|
27
28
|
include AbstractGroupedComponent
|
28
29
|
include AbstractSnapshot
|
29
30
|
include HealthyResourceVerifier
|
@@ -24,6 +24,7 @@ module RubyAemAws
|
|
24
24
|
# Interface to the AWS instance running the PublishDispatcher component of a full-set AEM stack.
|
25
25
|
class PublishDispatcher
|
26
26
|
attr_reader :descriptor, :ec2_resource, :asg_client, :elb_client, :cloud_watch_client, :cloud_watch_log_client
|
27
|
+
|
27
28
|
include AbstractGroupedComponent
|
28
29
|
include AbstractSnapshot
|
29
30
|
include HealthyResourceVerifier
|
@@ -23,6 +23,7 @@ module RubyAemAws
|
|
23
23
|
# Interface to the AWS StackManager to send out commands
|
24
24
|
class StackManagerResources
|
25
25
|
attr_reader :dynamodb_client, :s3_client, :s3_resource, :cloud_watch_client, :cloud_watch_log_client
|
26
|
+
|
26
27
|
include AbstractStackManager
|
27
28
|
include DynamoDB
|
28
29
|
include MetricVerifier
|
@@ -47,10 +47,10 @@ module RubyAemAws
|
|
47
47
|
|
48
48
|
class Constants
|
49
49
|
REGION_DEFAULT = ENV['AWS_DEFAULT_REGION'] || ENV['aws_default_region'] || ENV['AWS_REGION'] || ENV['aws_region'] || 'ap-southeast-2'.freeze
|
50
|
-
ACCESS_KEY_ID = ENV['AWS_ACCESS_KEY_ID'] || ENV
|
51
|
-
SECRET_ACCESS_KEY = ENV['AWS_SECRET_ACCESS_KEY'] || ENV
|
52
|
-
SESSION_TOKEN = ENV['AWS_SESSION_TOKEN'] || ENV
|
53
|
-
PROFILE = ENV['AWS_PROFILE'] || ENV
|
50
|
+
ACCESS_KEY_ID = ENV['AWS_ACCESS_KEY_ID'] || ENV.fetch('aws_access_key_id', nil)
|
51
|
+
SECRET_ACCESS_KEY = ENV['AWS_SECRET_ACCESS_KEY'] || ENV.fetch('aws_secret_access_key', nil)
|
52
|
+
SESSION_TOKEN = ENV['AWS_SESSION_TOKEN'] || ENV.fetch('aws_session_token', nil)
|
53
|
+
PROFILE = ENV['AWS_PROFILE'] || ENV.fetch('aws_profile', nil)
|
54
54
|
INSTANCE_STATE_HEALTHY = RubyAemAws::InstanceState::RUNNING.freeze
|
55
55
|
INSTANCE_STATE_CODE_RUNNING = RubyAemAws::InstanceStateCode::RUNNING
|
56
56
|
ELB_INSTANCE_INSERVICE = RubyAemAws::ELBInstanceState::HEALTHY.freeze
|
data/lib/ruby_aem_aws.rb
CHANGED
@@ -12,6 +12,15 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
require 'aws-sdk-autoscaling'
|
16
|
+
require 'aws-sdk-cloudformation'
|
17
|
+
require 'aws-sdk-cloudwatch'
|
18
|
+
require 'aws-sdk-cloudwatchlogs'
|
19
|
+
require 'aws-sdk-dynamodb'
|
20
|
+
require 'aws-sdk-ec2'
|
21
|
+
require 'aws-sdk-elasticloadbalancingv2'
|
22
|
+
require 'aws-sdk-sns'
|
23
|
+
require 'aws-sdk-s3'
|
15
24
|
require_relative 'ruby_aem_aws/architecture/consolidated_stack'
|
16
25
|
require_relative 'ruby_aem_aws/architecture/full_set_stack'
|
17
26
|
require_relative 'ruby_aem_aws/architecture/stack_manager'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_aem_aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shine Solutions
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -141,7 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
|
-
|
144
|
+
rubyforge_project:
|
145
|
+
rubygems_version: 2.6.14.4
|
145
146
|
signing_key:
|
146
147
|
specification_version: 4
|
147
148
|
summary: AEM on AWS API Ruby client
|