cfn_manage 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alarm_start_stop_handler.rb +2 -2
- data/lib/asg_start_stop_handler.rb +2 -2
- data/lib/ec2_start_stop_handler.rb +2 -2
- data/lib/rds_start_stop_handler.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c92ebe34e9aa451e395a659b01c57833a4f1f785
|
4
|
+
data.tar.gz: 1caeb9c9d6b9aee109cb394255294991c2e7bc77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|