lucid-cumulus 0.11.8 → 0.11.10
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/.travis.yml +2 -0
- data/Gemfile.lock +3 -3
- data/lib/iam/manager/IamRoles.rb +6 -1
- data/lib/util/AwsUtil.rb +11 -0
- data/lib/vpc/manager/Manager.rb +2 -2
- data/lucid-cumulus.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7220546a5f2732ef63cf3b45fd4b6bd3bacbc11
|
4
|
+
data.tar.gz: 2153b9a28d2b03b01b4318000baade9a85e308c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee71d0bcc8708836ff71da319a4101249733e99c94ecfc25899aeab8d79b12983c8ceb64eaabcc8f7008ca4e94760c35d73b97b1a0b21af5e459c0f611f4c87
|
7
|
+
data.tar.gz: 3f94c2ae10458bb5a1ac6684810c0f19156a95d3545a5a13ab0fd6ccdc43bc2779ffac367567823f08c4326bda43b94c2a5a5e1a2faa48373579dac12737f67a
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lucid-cumulus (0.11.
|
4
|
+
lucid-cumulus (0.11.10)
|
5
5
|
aws-sdk (~> 2.6.3)
|
6
6
|
deepsort (~> 0.1)
|
7
7
|
parse-cron (~> 0.1.4)
|
@@ -16,7 +16,7 @@ GEM
|
|
16
16
|
jmespath (~> 1.0)
|
17
17
|
aws-sdk-resources (2.6.50)
|
18
18
|
aws-sdk-core (= 2.6.50)
|
19
|
-
aws-sigv4 (1.0.
|
19
|
+
aws-sigv4 (1.0.2)
|
20
20
|
deepsort (0.4.0)
|
21
21
|
diff-lcs (1.2.5)
|
22
22
|
jmespath (1.3.1)
|
@@ -45,4 +45,4 @@ DEPENDENCIES
|
|
45
45
|
rspec
|
46
46
|
|
47
47
|
BUNDLED WITH
|
48
|
-
1.
|
48
|
+
1.16.0
|
data/lib/iam/manager/IamRoles.rb
CHANGED
@@ -3,6 +3,7 @@ require "iam/manager/IamResource"
|
|
3
3
|
require "iam/migration/AssumeRoleUnifier"
|
4
4
|
require "iam/models/IamDiff"
|
5
5
|
require "iam/models/RoleConfig"
|
6
|
+
require "util/AwsUtil"
|
6
7
|
require "util/Colors"
|
7
8
|
|
8
9
|
require "aws-sdk"
|
@@ -38,7 +39,11 @@ module Cumulus
|
|
38
39
|
#
|
39
40
|
# Returns the Array of AWS roles
|
40
41
|
def init_aws_roles
|
41
|
-
|
42
|
+
roles = AwsUtil.list_paged_results do |marker|
|
43
|
+
response = @iam.list_roles(marker: marker)
|
44
|
+
[response.roles, response.is_truncated, response.marker]
|
45
|
+
end
|
46
|
+
roles.map do |role|
|
42
47
|
Aws::IAM::Role.new(role.role_name, { :client => @iam })
|
43
48
|
end
|
44
49
|
end
|
data/lib/util/AwsUtil.rb
CHANGED
data/lib/vpc/manager/Manager.rb
CHANGED
@@ -361,14 +361,14 @@ module Cumulus
|
|
361
361
|
# acl_map - a map of network acl ids to names to substitute fo rin the vpc config
|
362
362
|
def migrate_vpcs(dir, rt_map, subnet_map, acl_map)
|
363
363
|
puts Colors.blue("Migrating vpcs to #{dir}")
|
364
|
-
|
364
|
+
EC2::named_vpcs.each do |name, vpc|
|
365
365
|
puts "Migrating vpc #{name}"
|
366
366
|
|
367
367
|
cumulus_vpc = (VpcConfig.new(name)).populate!(vpc, rt_map, subnet_map, acl_map)
|
368
368
|
|
369
369
|
json = JSON.pretty_generate(cumulus_vpc.to_hash)
|
370
370
|
File.open("#{dir}/#{name}.json", "w") { |f| f.write(json) }
|
371
|
-
end
|
371
|
+
end
|
372
372
|
end
|
373
373
|
|
374
374
|
private
|
data/lucid-cumulus.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lucid-cumulus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keilan Jackson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -278,7 +278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
278
278
|
version: '0'
|
279
279
|
requirements: []
|
280
280
|
rubyforge_project:
|
281
|
-
rubygems_version: 2.
|
281
|
+
rubygems_version: 2.6.14
|
282
282
|
signing_key:
|
283
283
|
specification_version: 4
|
284
284
|
summary: AWS Configuration Manager
|