cfn_manage 0.2.4 → 0.2.5

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
  SHA1:
3
- metadata.gz: cb6ce2f60fd32825baca6d6221446a3ea48eb186
4
- data.tar.gz: 4281e5d507f2442530943b365dbc187e6d187fcc
3
+ metadata.gz: c92ebe34e9aa451e395a659b01c57833a4f1f785
4
+ data.tar.gz: 1caeb9c9d6b9aee109cb394255294991c2e7bc77
5
5
  SHA512:
6
- metadata.gz: a83a296e7db2b4286eace5b7d8fcafb6c53bdee1ca578f2f12ab0a023c319d7ea847072e985a8034026436678d8be038de673505db5c3bb1c68b41134197def9
7
- data.tar.gz: 8c7fd7cc9d1bef958622c367418c2d41963e6300f3aac12578bf180c07bf6902e7091816f3e29f024be1e001130a9e3682bc874fb3d8cd80b5dee0dd5659213a
6
+ metadata.gz: 6c16df7db1d705c059a4d4076ca36d312e6a57b855c2b3ccc101c9305a8a71265265640fe91c0d7e72e451752fd404cd4479bcb301ea5e927d404cb1668e9a4c
7
+ data.tar.gz: f5e8939b224f7ab3671076091e6a0637d94eebfe2815f93832f5b6939d9ab638fcf643ed8dc1835f0f14683b23db9b3cc74410016225b52162887171f0a1bdda
@@ -7,9 +7,9 @@ module Base2
7
7
  def initialize(alarm_name)
8
8
  @alarm_id = alarm_name
9
9
  credentials = Base2::AWSCredentials.get_session_credentials("startstopalarm_#{@asg_name}")
10
- @cwclient = Aws::CloudWatch::Client.new()
10
+ @cwclient = Aws::CloudWatch::Client.new(retry_limit: 20)
11
11
  if credentials != nil
12
- @cwclient = Aws::CloudWatch::Client.new(credentials: credentials)
12
+ @cwclient = Aws::CloudWatch::Client.new(credentials: credentials, retry_limit: 20)
13
13
  end
14
14
 
15
15
  @cwresource = Aws::CloudWatch::Resource.new(client: @cwclient)
@@ -8,9 +8,9 @@ module Base2
8
8
  @asg_name = asg_id
9
9
 
10
10
  credentials = Base2::AWSCredentials.get_session_credentials("stopasg_#{@asg_name}")
11
- @asg_client = Aws::AutoScaling::Client.new()
11
+ @asg_client = Aws::AutoScaling::Client.new(retry_limit: 20)
12
12
  if credentials != nil
13
- @asg_client = Aws::AutoScaling::Client.new(credentials: credentials)
13
+ @asg_client = Aws::AutoScaling::Client.new(credentials: credentials, retry_limit: 20)
14
14
  end
15
15
 
16
16
  asg_details = @asg_client.describe_auto_scaling_groups(
@@ -8,8 +8,8 @@ module Base2
8
8
 
9
9
  def initialize(instance_id)
10
10
  credentials = Base2::AWSCredentials.get_session_credentials("stoprun_#{instance_id}")
11
- ec2_client = Aws::EC2::Client.new(credentials: credentials)
12
- @instance = Aws::EC2::Resource.new(client: ec2_client).instance(instance_id)
11
+ ec2_client = Aws::EC2::Client.new(credentials: credentials, retry_limit: 20)
12
+ @instance = Aws::EC2::Resource.new(client: ec2_client, retry_limit: 20).instance(instance_id)
13
13
  @instance_id = instance_id
14
14
  end
15
15
 
@@ -8,9 +8,9 @@ module Base2
8
8
  @instance_id = instance_id
9
9
 
10
10
  credentials = Base2::AWSCredentials.get_session_credentials("startstoprds_#{instance_id}")
11
- @rds_client = Aws::RDS::Client.new()
11
+ @rds_client = Aws::RDS::Client.new(retry_limit: 20)
12
12
  if credentials != nil
13
- @rds_client = Aws::RDS::Client.new(credentials: credentials)
13
+ @rds_client = Aws::RDS::Client.new(credentials: credentials, retry_limit: 20)
14
14
  end
15
15
  rds = Aws::RDS::Resource.new(client: @rds_client)
16
16
  @rds_instance = rds.db_instance(instance_id)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn_manage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Base2Services