sparkle-pack-aws-amis 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 14abc0b61b5c20139b90e6872bb854c4240b5e07
4
+ data.tar.gz: 83e5f658367d043a8876d5e411e7879f1cdb8277
5
+ SHA512:
6
+ metadata.gz: 42e1a0eb7c30ff14d068dc02de44188d69ee88dc28e054c7c63dfa4be5ccddbeb26ac7901861e6d36c546b8cca544f0174d2fee016c8680e8089983cc10e49df
7
+ data.tar.gz: 93bc71550b43096a980f434e330547d866630d3fcc46b7250e0a7c72de77568af9b243a6c5d0c4b7724ed8b0f68100bcf744425d91ab38d07c2cbb68b4e2883e
@@ -0,0 +1 @@
1
+ SparkleFormation::SparklePack.register!
@@ -0,0 +1,97 @@
1
+ SfnRegistry.register(:amazon_2015_09_amis) do
2
+ {
3
+ :version => '201509',
4
+ :amis => {
5
+ 'us-east-1' => {
6
+ :hvm => {
7
+ :ebs_ssd => 'ami-60b6c60a',
8
+ :instance_store => 'ami-66b6c60c'
9
+ },
10
+ :pv => {
11
+ :ebs_ssd => 'ami-5fb8c835',
12
+ :instance_store => 'ami-30b6c65a'
13
+ }
14
+ },
15
+ 'us-west-2' => {
16
+ :hvm => {
17
+ :ebs_ssd => 'ami-f0091d91',
18
+ :instance_store => 'ami-31342050'
19
+ },
20
+ :pv => {
21
+ :ebs_ssd => 'ami-d93622b8',
22
+ :instance_store => 'ami-960317f7'
23
+ }
24
+ },
25
+ 'us-west-1' => {
26
+ :hvm => {
27
+ :ebs_ssd => 'ami-d5ea86b5',
28
+ :instance_store => 'ami-ede78b8d'
29
+ },
30
+ :pv => {
31
+ :ebs_ssd => 'ami-56ea8636',
32
+ :instance_store => 'ami-c6eb87a6'
33
+ }
34
+ },
35
+ 'eu-west-1' => {
36
+ :hvm => {
37
+ :ebs_ssd => 'ami-bff32ccc',
38
+ :instance_store => 'ami-54e03f27'
39
+ },
40
+ :pv => {
41
+ :ebs_ssd => 'ami-95e33ce6',
42
+ :instance_store => 'ami-54e53a27'
43
+ }
44
+ },
45
+ 'eu-central-1' => {
46
+ :hvm => {
47
+ :ebs_ssd => 'ami-bc5b48d0',
48
+ :instance_store => 'ami-8d4a59e1'
49
+ },
50
+ :pv => {
51
+ :ebs_ssd => 'ami-794a5915',
52
+ :instance_store => 'ami-ef445783'
53
+ }
54
+ },
55
+ 'ap-southeast-1' => {
56
+ :hvm => {
57
+ :ebs_ssd => 'ami-c9b572aa',
58
+ :instance_store => 'ami-deb176bd'
59
+ },
60
+ :pv => {
61
+ :ebs_ssd => 'ami-34bd7a57',
62
+ :instance_store => 'ami-66bf7805'
63
+ }
64
+ },
65
+ 'ap-southeast-2' => {
66
+ :hvm => {
67
+ :ebs_ssd => 'ami-48d38c2b',
68
+ :instance_store => 'ami-cad986a9'
69
+ },
70
+ :pv => {
71
+ :ebs_ssd => 'ami-ced887ad',
72
+ :instance_store => 'ami-cfd887ac'
73
+ }
74
+ },
75
+ 'ap-northeast-1' => {
76
+ :hvm => {
77
+ :ebs_ssd => 'ami-383c1956',
78
+ :instance_store => 'ami-4232172c'
79
+ },
80
+ :pv => {
81
+ :ebs_ssd => 'ami-393c1957',
82
+ :instance_store => 'ami-4532172b'
83
+ }
84
+ },
85
+ 'sa-east-1' => {
86
+ :hvm => {
87
+ :ebs_ssd => 'ami-6817af04',
88
+ :instance_store => 'ami-7b15ad17'
89
+ },
90
+ :pv => {
91
+ :ebs_ssd => 'ami-7d15ad11',
92
+ :instance_store => 'ami-4f13ab23'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
@@ -0,0 +1,25 @@
1
+ SfnRegistry.register(:official_amis) do |_name, _config = {}|
2
+
3
+ type = _config.fetch(:type, 'instance_store').to_sym
4
+ virt = _config.fetch(:virt, 'hvm').to_sym
5
+ os_versions = _config.fetch(:os_versions, ['ubuntu_14', 'ubuntu_12', 'amazon_2015_09'])
6
+
7
+ ami_hash = {}
8
+
9
+ os_versions.each do |os|
10
+ ami_hash[os] = registry!("#{os}_amis".to_sym)
11
+ end
12
+
13
+ ami_hash.each do |release, info|
14
+ info[:amis].each do |region, ids|
15
+ mappings do
16
+ official_amis do
17
+ camel_keys_set!(:auto_disable)
18
+ set!(region) do
19
+ set!(info[:version], ids[virt][type])
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,133 @@
1
+ SfnRegistry.register(:ubuntu_12_amis) do
2
+ {
3
+ :version => 'precise',
4
+ :amis => {
5
+ 'us-east-1' => {
6
+ :hvm => {
7
+ :ebs => 'ami-1aa1e370',
8
+ :ebs_io1 => 'ami-54a0e23e',
9
+ :ebs_ssd => 'ami-309ddf5a',
10
+ :instance_store => 'ami-3a90d250'
11
+ },
12
+ :pv => {
13
+ :ebs => 'ami-81a0e2eb',
14
+ :ebs_io1 => 'ami-5aa0e230',
15
+ :ebs_ssd => 'ami-3ca3e156',
16
+ :instance_store => 'ami-9c8fcdf6'
17
+ }
18
+ },
19
+ 'us-west-2' => {
20
+ :hvm => {
21
+ :ebs => 'ami-f7243696',
22
+ :ebs_io1 => 'ami-5a21333b',
23
+ :ebs_ssd => 'ami-9b2436fa',
24
+ :instance_store => 'ami-77223016'
25
+ },
26
+ :pv => {
27
+ :ebs => 'ami-9c2436fd',
28
+ :ebs_io1 => 'ami-9a2436fb',
29
+ :ebs_ssd => 'ami-d02634b1',
30
+ :instance_store => 'ami-c72032a6'
31
+ }
32
+ },
33
+ 'us-west-1' => {
34
+ :hvm => {
35
+ :ebs => 'ami-2bdbb24b',
36
+ :ebs_io1 => 'ami-2ddab34d',
37
+ :ebs_ssd => 'ami-caddb4aa',
38
+ :instance_store => 'ami-87dab3e7'
39
+ },
40
+ :pv => {
41
+ :ebs => 'ami-f0dab390',
42
+ :ebs_io1 => 'ami-f1dab391',
43
+ :ebs_ssd => 'ami-2cdab34c',
44
+ :instance_store => 'ami-65d9b005'
45
+ }
46
+ },
47
+ 'eu-west-1' => {
48
+ :hvm => {
49
+ :ebs => 'ami-8315b2f0',
50
+ :ebs_io1 => 'ami-0212b571',
51
+ :ebs_ssd => 'ami-c509aeb6',
52
+ :instance_store => 'ami-5217b021'
53
+ },
54
+ :pv => {
55
+ :ebs => 'ami-8115b2f2',
56
+ :ebs_io1 => 'ami-3b10b748',
57
+ :ebs_ssd => 'ami-8015b2f3',
58
+ :instance_store => 'ami-c50bacb6'
59
+ }
60
+ },
61
+ 'eu-central-1' => {
62
+ :hvm => {
63
+ :ebs => 'ami-132b367f',
64
+ :ebs_io1 => 'ami-862835ea',
65
+ :ebs_ssd => 'ami-872835eb',
66
+ :instance_store => 'ami-6b2e3307'
67
+ },
68
+ :pv => {
69
+ :ebs => 'ami-c22934ae',
70
+ :ebs_io1 => 'ami-5b283537',
71
+ :ebs_ssd => 'ami-2029344c',
72
+ :instance_store => 'ami-172e337b'
73
+ }
74
+ },
75
+ 'ap-southeast-1' => {
76
+ :hvm => {
77
+ :ebs => 'ami-34cb0b57',
78
+ :ebs_io1 => 'ami-87ca0ae4',
79
+ :ebs_ssd => 'ami-70cc0c13',
80
+ :instance_store => 'ami-72cc0c11'
81
+ },
82
+ :pv => {
83
+ :ebs => 'ami-48cc0c2b',
84
+ :ebs_io1 => 'ami-e2c90981',
85
+ :ebs_ssd => 'ami-86ca0ae5',
86
+ :instance_store => 'ami-06ca0a65'
87
+ }
88
+ },
89
+ 'ap-southeast-2' => {
90
+ :hvm => {
91
+ :ebs => 'ami-bb5a02d8',
92
+ :ebs_io1 => 'ami-1858007b',
93
+ :ebs_ssd => 'ami-aa5800c9',
94
+ :instance_store => 'ami-7f58001c'
95
+ },
96
+ :pv => {
97
+ :ebs => 'ami-d65a02b5',
98
+ :ebs_io1 => 'ami-bd5a02de',
99
+ :ebs_ssd => 'ami-b6277fd5',
100
+ :instance_store => 'ami-27257d44'
101
+ }
102
+ },
103
+ 'ap-northeast-1' => {
104
+ :hvm => {
105
+ :ebs => 'ami-a8f8d7c6',
106
+ :ebs_io1 => 'ami-4afdd224',
107
+ :ebs_ssd => 'ami-3df8d753',
108
+ :instance_store => 'ami-bef9d6d0'
109
+ },
110
+ :pv => {
111
+ :ebs => 'ami-b8f9d6d6',
112
+ :ebs_io1 => 'ami-defad5b0',
113
+ :ebs_ssd => 'ami-e0f6d98e',
114
+ :instance_store => 'ami-0bfcd365'
115
+ }
116
+ },
117
+ 'sa-east-1' => {
118
+ :hvm => {
119
+ :ebs => 'ami-2300854f',
120
+ :ebs_io1 => 'ami-b70386db',
121
+ :ebs_ssd => 'ami-e9078285',
122
+ :instance_store => 'ami-ec078280'
123
+ },
124
+ :pv => {
125
+ :ebs => 'ami-5e018432',
126
+ :ebs_io1 => 'ami-e706838b',
127
+ :ebs_ssd => 'ami-c10184ad',
128
+ :instance_store => 'ami-e5058089'
129
+ }
130
+ }
131
+ }
132
+ }
133
+ end
@@ -0,0 +1,133 @@
1
+ SfnRegistry.register(:ubuntu_14_amis) do
2
+ {
3
+ :version => 'trusty',
4
+ :amis => {
5
+ 'us-east-1' => {
6
+ :hvm => {
7
+ :ebs => 'ami-0f8bce65',
8
+ :ebs_io1 => 'ami-b988cdd3',
9
+ :ebs_ssd => 'ami-7b89cc11',
10
+ :instance_store => 'ami-7b89cc11'
11
+ },
12
+ :pv => {
13
+ :ebs => 'ami-7388cd19',
14
+ :ebs_io1 => 'ami-548acf3e',
15
+ :ebs_ssd => 'ami-0a8acf60',
16
+ :instance_store => 'ami-0a7a3f60'
17
+ }
18
+ },
19
+ 'us-west-2' => {
20
+ :hvm => {
21
+ :ebs => 'ami-534d5d32',
22
+ :ebs_io1 => 'ami-9d4f5ffc',
23
+ :ebs_ssd => 'ami-d24c5cb3',
24
+ :instance_store => 'ami-874a5ae6'
25
+ },
26
+ :pv => {
27
+ :ebs => 'ami-e54f5f84',
28
+ :ebs_io1 => 'ami-2b4e5e4a',
29
+ :ebs_ssd => 'ami-d04c5cb1',
30
+ :instance_store => 'ami-b04959d1'
31
+ }
32
+ },
33
+ 'us-west-1' => {
34
+ :hvm => {
35
+ :ebs => 'ami-f898f698',
36
+ :ebs_io1 => 'ami-c59bf5a5',
37
+ :ebs_ssd => 'ami-809df3e0',
38
+ :instance_store => 'ami-769af416'
39
+ },
40
+ :pv => {
41
+ :ebs => 'ami-5f9af43f',
42
+ :ebs_io1 => 'ami-829df3e2',
43
+ :ebs_ssd => 'ami-4d99f72d',
44
+ :instance_store => 'ami-139ef073'
45
+ }
46
+ },
47
+ 'eu-west-1' => {
48
+ :hvm => {
49
+ :ebs => 'ami-8d16ccfe',
50
+ :ebs_io1 => 'ami-be10cacd',
51
+ :ebs_ssd => 'ami-6514ce16',
52
+ :instance_store => 'ami-a113c9d2'
53
+ },
54
+ :pv => {
55
+ :ebs => 'ami-9513c9e6',
56
+ :ebs_io1 => 'ami-d714cea4',
57
+ :ebs_ssd => 'ami-9613c9e5',
58
+ :instance_store => 'ami-5910ca2a'
59
+ }
60
+ },
61
+ 'eu-central-1' => {
62
+ :hvm => {
63
+ :ebs => 'ami-ba2230d6',
64
+ :ebs_io1 => 'ami-e5223089',
65
+ :ebs_ssd => 'ami-02392b6e',
66
+ :instance_store => 'ami-433c2e2f'
67
+ },
68
+ :pv => {
69
+ :ebs => 'ami-bb2230d7',
70
+ :ebs_io1 => 'ami-643c2e08',
71
+ :ebs_ssd => 'ami-a43c2ec8',
72
+ :instance_store => 'ami-613e2c0d'
73
+ }
74
+ },
75
+ 'ap-southeast-1' => {
76
+ :hvm => {
77
+ :ebs => 'ami-788e4f1b',
78
+ :ebs_io1 => 'ami-1e8c4d7d',
79
+ :ebs_ssd => 'ami-f78c4d94',
80
+ :instance_store => 'ami-798e4f1a'
81
+ },
82
+ :pv => {
83
+ :ebs => 'ami-e88c4d8b',
84
+ :ebs_io1 => 'ami-b48d4cd7',
85
+ :ebs_ssd => 'ami-3a8f4e59',
86
+ :instance_store => 'ami-488f4e2b'
87
+ }
88
+ },
89
+ 'ap-southeast-2' => {
90
+ :hvm => {
91
+ :ebs => 'ami-b95d04da',
92
+ :ebs_io1 => 'ami-ba5f06d9',
93
+ :ebs_ssd => 'ami-a25a03c1',
94
+ :instance_store => 'ami-025c0561'
95
+ },
96
+ :pv => {
97
+ :ebs => 'ami-f05e0793',
98
+ :ebs_io1 => 'ami-bb5f06d8',
99
+ :ebs_ssd => 'ami-425c0521',
100
+ :instance_store => 'ami-4e5f062d'
101
+ }
102
+ },
103
+ 'ap-northeast-1' => {
104
+ :hvm => {
105
+ :ebs => 'ami-37092a59',
106
+ :ebs_io1 => 'ami-08092a66',
107
+ :ebs_ssd => 'ami-eb0a2985',
108
+ :instance_store => 'ami-37042759'
109
+ },
110
+ :pv => {
111
+ :ebs => 'ami-69052607',
112
+ :ebs_io1 => 'ami-69052607',
113
+ :ebs_ssd => 'ami-ae0a29c0',
114
+ :instance_store => 'ami-960526f8'
115
+ }
116
+ },
117
+ 'sa-east-1' => {
118
+ :hvm => {
119
+ :ebs => 'ami-37092a59',
120
+ :ebs_io1 => 'ami-08092a66',
121
+ :ebs_ssd => 'ami-9f4cf6f3',
122
+ :instance_store => 'ami-5f4df733'
123
+ },
124
+ :pv => {
125
+ :ebs => 'ami-37092a59',
126
+ :ebs_io1 => 'ami-08092a66',
127
+ :ebs_ssd => 'ami-f840fa94',
128
+ :instance_store => 'ami-444cf628'
129
+ }
130
+ }
131
+ }
132
+ }
133
+ end
@@ -0,0 +1,13 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'sparkle-pack-aws-amis'
3
+ s.version = '0.1.0'
4
+ s.licenses = ['MIT']
5
+ s.summary = 'AWS AMI SparklePack'
6
+ s.description = 'SparklePack to provide mappings for Official Amazon and Ubuntu AMIs by region'
7
+ s.authors = ['Michael F. Weinberg']
8
+ s.email = 'michael@heavywater.io'
9
+ s.homepage = 'http://sparkleformation.io'
10
+ s.files = Dir[ 'lib/sparkleformation/registry/*' ] + %w(sparkle-pack-aws-amis.gemspec lib/sparkle-pack-aws-amis.rb)
11
+ s.add_runtime_dependency 'sparkle_formation'
12
+ end
13
+
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sparkle-pack-aws-amis
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Michael F. Weinberg
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sparkle_formation
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: SparklePack to provide mappings for Official Amazon and Ubuntu AMIs by
28
+ region
29
+ email: michael@heavywater.io
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - lib/sparkle-pack-aws-amis.rb
35
+ - lib/sparkleformation/registry/amazon_2015_09.rb
36
+ - lib/sparkleformation/registry/official_amis.rb
37
+ - lib/sparkleformation/registry/ubuntu_12.rb
38
+ - lib/sparkleformation/registry/ubuntu_14.rb
39
+ - sparkle-pack-aws-amis.gemspec
40
+ homepage: http://sparkleformation.io
41
+ licenses:
42
+ - MIT
43
+ metadata: {}
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubyforge_project:
60
+ rubygems_version: 2.2.2
61
+ signing_key:
62
+ specification_version: 4
63
+ summary: AWS AMI SparklePack
64
+ test_files: []