sumomo 0.8.22 → 0.9.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 +4 -4
- data/lib/sumomo/ec2.rb +6 -6
- data/lib/sumomo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '073782fdfbe69977c7593b76415797b035764772302b35c50ccf69533324c875'
|
|
4
|
+
data.tar.gz: 1efbe5244de1bf4cd3c8ff6faf18a3b3bbda9b4137297c1ba6d1349553ea60a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ee43afb24863f75a9d421d116e696e410ad90c2cdb15e1bd353c05bcde3d6ef08a69055ede03b3ad62f87c0483196a643029839afe255266292d7a5371957b1
|
|
7
|
+
data.tar.gz: 92f385cc371f99e5201540d9fecc75f6a66ced34b75d3c397bbc85706c1ab00d72e25651d56d30402549994ad4fb6f3b6d4f03df9edcfb0f4c794af036d9f5f9
|
data/lib/sumomo/ec2.rb
CHANGED
|
@@ -277,7 +277,7 @@ module Sumomo
|
|
|
277
277
|
@ami_lookup_resources ||= {}
|
|
278
278
|
|
|
279
279
|
unless @ami_lookup_resources[type]
|
|
280
|
-
@ami_lookup_resources[type] = make 'Custom::AMILookup' do
|
|
280
|
+
@ami_lookup_resources[type] = make 'Custom::AMILookup', name: "#{name}AmiLookup" do
|
|
281
281
|
InstanceType type
|
|
282
282
|
end
|
|
283
283
|
end
|
|
@@ -335,14 +335,14 @@ module Sumomo
|
|
|
335
335
|
end
|
|
336
336
|
raise 'ec2: egress option needs to be an array' unless egress.is_a? Array
|
|
337
337
|
|
|
338
|
-
web_sec_group = make 'AWS::EC2::SecurityGroup' do
|
|
338
|
+
web_sec_group = make 'AWS::EC2::SecurityGroup', name: "#{name}SecurityGroup" do
|
|
339
339
|
GroupDescription "Security group for layer: #{layer}"
|
|
340
340
|
SecurityGroupIngress ingress
|
|
341
341
|
SecurityGroupEgress egress
|
|
342
342
|
VpcId network.vpc
|
|
343
343
|
end
|
|
344
344
|
|
|
345
|
-
wait_handle = make 'AWS::CloudFormation::WaitConditionHandle'
|
|
345
|
+
wait_handle = make 'AWS::CloudFormation::WaitConditionHandle', name: "#{name}WaitConditionHandle"
|
|
346
346
|
|
|
347
347
|
user_data = initscript(wait_handle, name, call('Fn::Join', "\n", script_arr))
|
|
348
348
|
|
|
@@ -355,7 +355,7 @@ module Sumomo
|
|
|
355
355
|
}]
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
asg_role = make 'AWS::IAM::Role' do
|
|
358
|
+
asg_role = make 'AWS::IAM::Role', name: "#{name}Role" do
|
|
359
359
|
AssumeRolePolicyDocument role_policy_doc
|
|
360
360
|
Path '/'
|
|
361
361
|
Policies [{
|
|
@@ -404,12 +404,12 @@ module Sumomo
|
|
|
404
404
|
}]
|
|
405
405
|
end
|
|
406
406
|
|
|
407
|
-
asg_profile = make 'AWS::IAM::InstanceProfile' do
|
|
407
|
+
asg_profile = make 'AWS::IAM::InstanceProfile', name: "#{name}InstanceProfile" do
|
|
408
408
|
Path '/'
|
|
409
409
|
Roles [asg_role]
|
|
410
410
|
end
|
|
411
411
|
|
|
412
|
-
launch_config = make 'AWS::AutoScaling::LaunchConfiguration' do
|
|
412
|
+
launch_config = make 'AWS::AutoScaling::LaunchConfiguration', name: "#{name}LaunchConfiguration" do
|
|
413
413
|
AssociatePublicIpAddress has_public_ips
|
|
414
414
|
KeyName keypair
|
|
415
415
|
SecurityGroups [web_sec_group] + security_groups
|
data/lib/sumomo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sumomo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Siaw
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-04-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|