bosh_cli_plugin_aws 1.3016.0 → 1.3022.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bosh/cli/commands/aws.rb +16 -16
  3. data/lib/bosh_cli_plugin_aws/aws_config.rb +1 -1
  4. data/lib/bosh_cli_plugin_aws/aws_provider.rb +1 -1
  5. data/lib/bosh_cli_plugin_aws/bat_manifest.rb +1 -1
  6. data/lib/bosh_cli_plugin_aws/bootstrap.rb +1 -1
  7. data/lib/bosh_cli_plugin_aws/bosh_bootstrap.rb +3 -3
  8. data/lib/bosh_cli_plugin_aws/bosh_manifest.rb +1 -1
  9. data/lib/bosh_cli_plugin_aws/destroyer.rb +5 -5
  10. data/lib/bosh_cli_plugin_aws/ec2.rb +1 -1
  11. data/lib/bosh_cli_plugin_aws/elb.rb +1 -1
  12. data/lib/bosh_cli_plugin_aws/micro_bosh_bootstrap.rb +3 -3
  13. data/lib/bosh_cli_plugin_aws/microbosh_manifest.rb +1 -1
  14. data/lib/bosh_cli_plugin_aws/migration.rb +2 -2
  15. data/lib/bosh_cli_plugin_aws/migration_helper.rb +1 -1
  16. data/lib/bosh_cli_plugin_aws/migrator.rb +3 -3
  17. data/lib/bosh_cli_plugin_aws/rds.rb +2 -2
  18. data/lib/bosh_cli_plugin_aws/rds_destroyer.rb +2 -2
  19. data/lib/bosh_cli_plugin_aws/route53.rb +1 -1
  20. data/lib/bosh_cli_plugin_aws/s3.rb +1 -1
  21. data/lib/bosh_cli_plugin_aws/version.rb +2 -2
  22. data/lib/bosh_cli_plugin_aws/vpc.rb +1 -1
  23. data/lib/bosh_cli_plugin_aws/vpc_destroyer.rb +3 -3
  24. data/migrations/20130412000811_create_key_pairs.rb +1 -1
  25. data/migrations/20130412004642_create_vpc.rb +3 -3
  26. data/migrations/20130412181302_create_route53_records.rb +1 -1
  27. data/migrations/20130412183544_create_rds_dbs.rb +2 -2
  28. data/migrations/20130412192351_create_s3.rb +1 -1
  29. data/migrations/20130529212130_create_more_unique_s3_buckets.rb +1 -1
  30. data/migrations/20130531180445_create_bosh_rds_db.rb +2 -2
  31. data/migrations/20130826150635_update_elb_for_websockets.rb +3 -3
  32. data/migrations/20130827000001_add_secondary_az_to_vpc.rb +3 -3
  33. data/templates/aws_migration.erb +1 -1
  34. metadata +13 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b74930e4c761c9080fe0c066cc86bf882750d0b
4
- data.tar.gz: 1e16e7d8a41f5d712a482cb54253aa5f978a2cc3
3
+ metadata.gz: 68e231dfb562a92084051375f1798cde4047554f
4
+ data.tar.gz: 67de72e115f49b4da46b77e2f203686a39e983fe
5
5
  SHA512:
6
- metadata.gz: ad40f53b63317902b718985fd2eb3b1feb1b3d08444f4e7611b348b46924b09d0f293e3867e85c994ba144d26b0ffe2b1a24ab46a1d4c9cf2605c1d9d9768364
7
- data.tar.gz: d16f179f0683882e394ca495b2c3c5b8a041d9bbbbfd52d4709290f5d223c843c5f61e47929cddba378484af1ef20fb7e54f7678558679f409c59544bbc46ae2
6
+ metadata.gz: 240824bdce248eaed0bbb6db7d736085192880a46442a139071d9360fa50c54a47feb4a0443d53e11d8a88928bca67708edc1b8c9dc37bf33987d158a90a102f
7
+ data.tar.gz: 0d5530a9e3f961cd3ce241b41258746bd81fc95dae8b37944496c2fb516a45d8f9d875b87a529dec4797305d4dbc9f713690b3e93275ca4d5739815cf62a58f4
@@ -31,7 +31,7 @@ module Bosh::Cli::Command
31
31
  options[:hm_director_password] = SecureRandom.base64
32
32
  options[:hm_director_user] ||= 'hm'
33
33
 
34
- bootstrap = Bosh::Aws::MicroBoshBootstrap.new(runner, options)
34
+ bootstrap = Bosh::AwsCliPlugin::MicroBoshBootstrap.new(runner, options)
35
35
  bootstrap.start
36
36
 
37
37
  bootstrap.create_user(options[:hm_director_user], options[:hm_director_password])
@@ -59,7 +59,7 @@ module Bosh::Cli::Command
59
59
  options[:hm_director_user] ||= 'hm'
60
60
  options[:hm_director_password] = SecureRandom.base64
61
61
 
62
- bootstrap = Bosh::Aws::BoshBootstrap.new(director, s3(config_file), self.options)
62
+ bootstrap = Bosh::AwsCliPlugin::BoshBootstrap.new(director, s3(config_file), self.options)
63
63
  bootstrap.start
64
64
 
65
65
  say 'For security purposes, please provide a username and password for BOSH Director'
@@ -71,7 +71,7 @@ module Bosh::Cli::Command
71
71
  say "BOSH deployed successfully. You are logged in as #{username}."
72
72
 
73
73
  bootstrap.create_user(options[:hm_director_user], options[:hm_director_password])
74
- rescue Bosh::Aws::BootstrapError => e
74
+ rescue Bosh::AwsCliPlugin::BootstrapError => e
75
75
  err "Unable to bootstrap bosh: #{e.message}"
76
76
  end
77
77
 
@@ -84,7 +84,7 @@ module Bosh::Cli::Command
84
84
  options[:hm_director_user] ||= 'hm'
85
85
  options[:hm_director_password] = SecureRandom.base64
86
86
 
87
- manifest = Bosh::Aws::MicroboshManifest.new(vpc_config, route53_config, options)
87
+ manifest = Bosh::AwsCliPlugin::MicroboshManifest.new(vpc_config, route53_config, options)
88
88
 
89
89
  write_yaml(manifest, manifest.file_name)
90
90
  end
@@ -100,7 +100,7 @@ module Bosh::Cli::Command
100
100
  vpc_config = load_yaml_file(vpc_receipt_file)
101
101
  route53_config = load_yaml_file(route53_receipt_file)
102
102
  bosh_rds_config = load_yaml_file(bosh_rds_receipt_file)
103
- bosh_manifest = Bosh::Aws::BoshManifest.new(vpc_config, route53_config, director.uuid, bosh_rds_config, options)
103
+ bosh_manifest = Bosh::AwsCliPlugin::BoshManifest.new(vpc_config, route53_config, director.uuid, bosh_rds_config, options)
104
104
 
105
105
  write_yaml(bosh_manifest, bosh_manifest.file_name)
106
106
  end
@@ -112,7 +112,7 @@ module Bosh::Cli::Command
112
112
 
113
113
  vpc_config = load_yaml_file(vpc_receipt_file)
114
114
  route53_config = load_yaml_file(route53_receipt_file)
115
- manifest = Bosh::Aws::BatManifest.new(
115
+ manifest = Bosh::AwsCliPlugin::BatManifest.new(
116
116
  vpc_config, route53_config, stemcell_version, director.uuid, stemcell_name)
117
117
 
118
118
  write_yaml(manifest, manifest.file_name)
@@ -127,31 +127,31 @@ module Bosh::Cli::Command
127
127
  ::AWS.config(:logger => Logger.new($stdout), :http_wire_trace => true)
128
128
  end
129
129
 
130
- Bosh::Aws::Migrator.new(load_config(config_file)).migrate
130
+ Bosh::AwsCliPlugin::Migrator.new(load_config(config_file)).migrate
131
131
  end
132
132
 
133
133
  usage 'aws create s3'
134
134
  desc 'create only the s3 buckets'
135
135
  def create_s3(config_file = nil)
136
- Bosh::Aws::Migrator.new(load_config(config_file)).migrate_version('20130412192351')
136
+ Bosh::AwsCliPlugin::Migrator.new(load_config(config_file)).migrate_version('20130412192351')
137
137
  end
138
138
 
139
139
  usage 'aws create key_pairs'
140
140
  desc 'creates only the key pairs'
141
141
  def create_key_pairs(config_file = nil)
142
- Bosh::Aws::Migrator.new(load_config(config_file)).migrate_version('20130412000811')
142
+ Bosh::AwsCliPlugin::Migrator.new(load_config(config_file)).migrate_version('20130412000811')
143
143
  end
144
144
 
145
145
  usage 'aws create route53 records'
146
146
  desc 'creates only the Route 53 records'
147
147
  def create_route53_records(config_file = nil)
148
- Bosh::Aws::Migrator.new(load_config(config_file)).migrate_version('20130412181302')
148
+ Bosh::AwsCliPlugin::Migrator.new(load_config(config_file)).migrate_version('20130412181302')
149
149
  end
150
150
 
151
151
  usage 'aws create vpc'
152
152
  desc 'creates only the VPC'
153
153
  def create_vpc(config_file = nil)
154
- Bosh::Aws::Migrator.new(load_config(config_file)).migrate_version('20130412004642')
154
+ Bosh::AwsCliPlugin::Migrator.new(load_config(config_file)).migrate_version('20130412004642')
155
155
  end
156
156
 
157
157
  usage 'aws destroy'
@@ -159,9 +159,9 @@ module Bosh::Cli::Command
159
159
  def destroy(config_file = nil)
160
160
  config = load_config(config_file)
161
161
 
162
- rds_destroyer = Bosh::Aws::RdsDestroyer.new(self, config)
163
- vpc_destroyer = Bosh::Aws::VpcDestroyer.new(self, config)
164
- destroyer = Bosh::Aws::Destroyer.new(self, config, rds_destroyer, vpc_destroyer)
162
+ rds_destroyer = Bosh::AwsCliPlugin::RdsDestroyer.new(self, config)
163
+ vpc_destroyer = Bosh::AwsCliPlugin::VpcDestroyer.new(self, config)
164
+ destroyer = Bosh::AwsCliPlugin::Destroyer.new(self, config, rds_destroyer, vpc_destroyer)
165
165
 
166
166
  destroyer.ensure_not_production!
167
167
  destroyer.delete_all_elbs
@@ -180,7 +180,7 @@ module Bosh::Cli::Command
180
180
 
181
181
  def s3(config_file)
182
182
  config = load_config(config_file)
183
- Bosh::Aws::S3.new(config['aws'])
183
+ Bosh::AwsCliPlugin::S3.new(config['aws'])
184
184
  end
185
185
 
186
186
  def default_config_file
@@ -191,7 +191,7 @@ module Bosh::Cli::Command
191
191
 
192
192
  def load_config(config_file=nil)
193
193
  config_file ||= default_config_file
194
- Bosh::Aws::AwsConfig.new(config_file).configuration
194
+ Bosh::AwsCliPlugin::AwsConfig.new(config_file).configuration
195
195
  end
196
196
  end
197
197
  end
@@ -1,7 +1,7 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Bosh
4
- module Aws
4
+ module AwsCliPlugin
5
5
  class ConfigurationInvalid < RuntimeError; end
6
6
 
7
7
  class AwsConfig
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
- module Aws
2
+ module AwsCliPlugin
3
3
  class AwsProvider
4
4
  attr_reader :credentials
5
5
 
@@ -1,7 +1,7 @@
1
1
  require 'net/http'
2
2
 
3
3
  module Bosh
4
- module Aws
4
+ module AwsCliPlugin
5
5
  class BatManifest < MicroboshManifest
6
6
  attr_reader :stemcell_version, :director_uuid, :stemcell_name
7
7
 
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
- module Aws
2
+ module AwsCliPlugin
3
3
  class Bootstrap
4
4
  AWS_JENKINS_BUCKET = "bosh-jenkins-artifacts"
5
5
 
@@ -5,7 +5,7 @@ require 'bosh/stemcell/archive_filename'
5
5
  require 'bosh/stemcell/definition'
6
6
 
7
7
  module Bosh
8
- module Aws
8
+ module AwsCliPlugin
9
9
  BootstrapError = Class.new(StandardError)
10
10
 
11
11
  class BoshBootstrap < Bootstrap
@@ -64,7 +64,7 @@ This command should be used for bootstrapping bosh from scratch.
64
64
  vpc_config = load_yaml_file(vpc_receipt_filename)
65
65
  route53_config = load_yaml_file(route53_receipt_filename)
66
66
  bosh_rds_config = load_yaml_file(bosh_rds_receipt_filename)
67
- @manifest = Bosh::Aws::BoshManifest.new(vpc_config, route53_config, director.uuid, bosh_rds_config, options)
67
+ @manifest = Bosh::AwsCliPlugin::BoshManifest.new(vpc_config, route53_config, director.uuid, bosh_rds_config, options)
68
68
  end
69
69
 
70
70
  @manifest
@@ -153,7 +153,7 @@ This command should be used for bootstrapping bosh from scratch.
153
153
  end
154
154
 
155
155
  def bosh_version
156
- env['BOSH_VERSION_OVERRIDE'] || Bosh::Aws::VERSION.split('.')[1]
156
+ env['BOSH_VERSION_OVERRIDE'] || Bosh::AwsCliPlugin::VERSION.split('.')[1]
157
157
  end
158
158
  end
159
159
  end
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
- module Aws
2
+ module AwsCliPlugin
3
3
  class BoshManifest < MicroboshManifest
4
4
 
5
5
  attr_reader :director_uuid, :rds_receipt
@@ -1,4 +1,4 @@
1
- module Bosh::Aws
1
+ module Bosh::AwsCliPlugin
2
2
  class Destroyer
3
3
  def initialize(ui, config, rds_destroyer, vpc_destroyer)
4
4
  @ui = ui
@@ -13,7 +13,7 @@ module Bosh::Aws
13
13
  end
14
14
 
15
15
  def delete_all_elbs
16
- elb = Bosh::Aws::ELB.new(@credentials)
16
+ elb = Bosh::AwsCliPlugin::ELB.new(@credentials)
17
17
  elb_names = elb.names
18
18
  if elb_names.any? && @ui.confirmed?("Are you sure you want to delete all ELBs (#{elb_names.join(', ')})?")
19
19
  elb.delete_elbs
@@ -56,7 +56,7 @@ module Bosh::Aws
56
56
  end
57
57
 
58
58
  def delete_all_s3
59
- s3 = Bosh::Aws::S3.new(@credentials)
59
+ s3 = Bosh::AwsCliPlugin::S3.new(@credentials)
60
60
  bucket_names = s3.bucket_names
61
61
 
62
62
  unless bucket_names.empty?
@@ -108,7 +108,7 @@ module Bosh::Aws
108
108
  end
109
109
 
110
110
  if @ui.confirmed?(msg)
111
- route53 = Bosh::Aws::Route53.new(@credentials)
111
+ route53 = Bosh::AwsCliPlugin::Route53.new(@credentials)
112
112
  route53.delete_all_records(omit_types: omit_types)
113
113
  end
114
114
  end
@@ -116,7 +116,7 @@ module Bosh::Aws
116
116
  private
117
117
 
118
118
  def ec2
119
- @ec2 ||= Bosh::Aws::EC2.new(@credentials)
119
+ @ec2 ||= Bosh::AwsCliPlugin::EC2.new(@credentials)
120
120
  end
121
121
  end
122
122
  end
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
- module Aws
2
+ module AwsCliPlugin
3
3
  class EC2
4
4
 
5
5
  NAT_AMI_ID = {
@@ -1,4 +1,4 @@
1
- module Bosh::Aws
1
+ module Bosh::AwsCliPlugin
2
2
  class ELB
3
3
  class BadCertificateError < RuntimeError;
4
4
  end
@@ -1,7 +1,7 @@
1
1
  require_relative "bootstrap"
2
2
 
3
3
  module Bosh
4
- module Aws
4
+ module AwsCliPlugin
5
5
  class MicroBoshBootstrap < Bootstrap
6
6
  def start
7
7
  cleanup_previous_deployments
@@ -28,7 +28,7 @@ module Bosh
28
28
  vpc_config = load_yaml_file(vpc_receipt_filename)
29
29
  route53_config = load_yaml_file(route53_receipt_filename)
30
30
 
31
- @manifest = Bosh::Aws::MicroboshManifest.new(vpc_config, route53_config, options)
31
+ @manifest = Bosh::AwsCliPlugin::MicroboshManifest.new(vpc_config, route53_config, options)
32
32
  end
33
33
 
34
34
  @manifest
@@ -61,4 +61,4 @@ module Bosh
61
61
  end
62
62
  end
63
63
  end
64
- end
64
+ end
@@ -1,7 +1,7 @@
1
1
  require 'common/ssl'
2
2
 
3
3
  module Bosh
4
- module Aws
4
+ module AwsCliPlugin
5
5
  class MicroboshManifest
6
6
  attr_reader :vpc_receipt, :route53_receipt, :hm_director_password, :hm_director_user
7
7
 
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
- module Aws
2
+ module AwsCliPlugin
3
3
  class Migration
4
4
 
5
5
  attr_reader :s3, :elb, :ec2, :rds, :route53, :logger, :config
@@ -37,4 +37,4 @@ module Bosh
37
37
  end
38
38
  end
39
39
  end
40
- end
40
+ end
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
- module Aws
2
+ module AwsCliPlugin
3
3
  module MigrationHelper
4
4
  class Template
5
5
  attr_reader :timestamp_string, :name, :class_name
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
- module Aws
2
+ module AwsCliPlugin
3
3
  class Migrator
4
4
 
5
5
  def initialize(config)
@@ -45,7 +45,7 @@ module Bosh
45
45
  attr_reader :migration_path
46
46
 
47
47
  def aws_s3
48
- @aws_s3 ||= Bosh::Aws::S3.new(@config['aws'])
48
+ @aws_s3 ||= Bosh::AwsCliPlugin::S3.new(@config['aws'])
49
49
  end
50
50
 
51
51
  def ensure_bucket_exists
@@ -134,4 +134,4 @@ module Bosh
134
134
  end
135
135
  end
136
136
  end
137
- end
137
+ end
@@ -1,7 +1,7 @@
1
1
  require "securerandom"
2
2
 
3
3
  module Bosh
4
- module Aws
4
+ module AwsCliPlugin
5
5
  class RDS
6
6
  DEFAULT_RDS_OPTIONS = {
7
7
  :allocated_storage => 5,
@@ -20,7 +20,7 @@ module Bosh
20
20
 
21
21
  def create_database(name, subnet_ids, vpc_id, options = {})
22
22
  create_db_parameter_group('utf8')
23
- vpc = Bosh::Aws::VPC.find(Bosh::Aws::EC2.new(@credentials), vpc_id)
23
+ vpc = Bosh::AwsCliPlugin::VPC.find(Bosh::AwsCliPlugin::EC2.new(@credentials), vpc_id)
24
24
  create_vpc_db_security_group(vpc, name) if vpc.security_group_by_name(name).nil?
25
25
  create_subnet_group(name, subnet_ids) unless subnet_group_exists?(name)
26
26
 
@@ -1,4 +1,4 @@
1
- module Bosh::Aws
1
+ module Bosh::AwsCliPlugin
2
2
  class RdsDestroyer
3
3
  def initialize(ui, config)
4
4
  @ui = ui
@@ -47,7 +47,7 @@ module Bosh::Aws
47
47
  end
48
48
 
49
49
  def rds
50
- @rds ||= Bosh::Aws::RDS.new(@credentials)
50
+ @rds ||= Bosh::AwsCliPlugin::RDS.new(@credentials)
51
51
  end
52
52
  end
53
53
  end
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
- module Aws
2
+ module AwsCliPlugin
3
3
  class Route53
4
4
 
5
5
  def initialize(credentials)
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
- module Aws
2
+ module AwsCliPlugin
3
3
  class S3
4
4
  def initialize(credentials)
5
5
  @aws_provider = AwsProvider.new(credentials)
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
- module Aws
3
- VERSION = '1.3016.0'
2
+ module AwsCliPlugin
3
+ VERSION = '1.3022.0'
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
- module Aws
2
+ module AwsCliPlugin
3
3
  class VPC
4
4
 
5
5
  DEFAULT_CIDR = "10.0.0.0/16"
@@ -1,4 +1,4 @@
1
- module Bosh::Aws
1
+ module Bosh::AwsCliPlugin
2
2
  class VpcDestroyer
3
3
  def initialize(ui, config)
4
4
  @ui = ui
@@ -19,7 +19,7 @@ module Bosh::Aws
19
19
  dhcp_options = []
20
20
 
21
21
  vpc_ids.each do |vpc_id|
22
- vpc = Bosh::Aws::VPC.find(ec2, vpc_id)
22
+ vpc = Bosh::AwsCliPlugin::VPC.find(ec2, vpc_id)
23
23
  if vpc.instances_count > 0
24
24
  raise "#{vpc.instances_count} instance(s) running in #{vpc.vpc_id} - delete them first"
25
25
  end
@@ -42,7 +42,7 @@ module Bosh::Aws
42
42
  private
43
43
 
44
44
  def ec2
45
- @ec2 ||= Bosh::Aws::EC2.new(@credentials)
45
+ @ec2 ||= Bosh::AwsCliPlugin::EC2.new(@credentials)
46
46
  end
47
47
  end
48
48
  end
@@ -1,4 +1,4 @@
1
- class CreateKeyPairs < Bosh::Aws::Migration
1
+ class CreateKeyPairs < Bosh::AwsCliPlugin::Migration
2
2
  def execute
3
3
  say "allocating #{config["key_pairs"].length} KeyPair(s)"
4
4
  config["key_pairs"].each do |name, path|
@@ -1,10 +1,10 @@
1
- class CreateVpc < Bosh::Aws::Migration
1
+ class CreateVpc < Bosh::AwsCliPlugin::Migration
2
2
  def execute
3
3
  receipt = {}
4
4
 
5
5
  receipt["aws"] = config["aws"]
6
6
 
7
- vpc = Bosh::Aws::VPC.create(ec2, config["vpc"]["cidr"], config["vpc"]["instance_tenancy"])
7
+ vpc = Bosh::AwsCliPlugin::VPC.create(ec2, config["vpc"]["cidr"], config["vpc"]["instance_tenancy"])
8
8
  receipt["vpc"] = {"id" => vpc.vpc_id, "domain" => config["vpc"]["domain"]}
9
9
 
10
10
  receipt["original_configuration"] = config
@@ -44,7 +44,7 @@ class CreateVpc < Bosh::Aws::Migration
44
44
  dhcp_options = config["vpc"]["dhcp_options"]
45
45
  say "creating DHCP options"
46
46
  vpc.create_dhcp_options(dhcp_options)
47
- rescue Bosh::Aws::ELB::BadCertificateError => e
47
+ rescue Bosh::AwsCliPlugin::ELB::BadCertificateError => e
48
48
  err e.message
49
49
  ensure
50
50
  save_receipt("aws_vpc_receipt", receipt)
@@ -1,4 +1,4 @@
1
- class CreateRoute53Records < Bosh::Aws::Migration
1
+ class CreateRoute53Records < Bosh::AwsCliPlugin::Migration
2
2
  def execute
3
3
  receipt = {}
4
4
  elastic_ip_specs = config["elastic_ips"]
@@ -1,5 +1,5 @@
1
- class CreateRdsDbs < Bosh::Aws::Migration
2
- include Bosh::Aws::MigrationHelper
1
+ class CreateRdsDbs < Bosh::AwsCliPlugin::Migration
2
+ include Bosh::AwsCliPlugin::MigrationHelper
3
3
 
4
4
  def execute
5
5
  if !config["rds"]
@@ -1,4 +1,4 @@
1
- class CreateS3 < Bosh::Aws::Migration
1
+ class CreateS3 < Bosh::AwsCliPlugin::Migration
2
2
  def execute
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
- class CreateMoreUniqueS3Buckets < Bosh::Aws::Migration
1
+ class CreateMoreUniqueS3Buckets < Bosh::AwsCliPlugin::Migration
2
2
  def s3_safe_full_domain_name
3
3
  config['vpc']['domain'].gsub(".","-")
4
4
  end
@@ -1,5 +1,5 @@
1
- class CreateBoshRdsDb < Bosh::Aws::Migration
2
- include Bosh::Aws::MigrationHelper
1
+ class CreateBoshRdsDb < Bosh::AwsCliPlugin::Migration
2
+ include Bosh::AwsCliPlugin::MigrationHelper
3
3
 
4
4
  def execute
5
5
  vpc_receipt = load_receipt("aws_vpc_receipt")
@@ -1,8 +1,8 @@
1
- class UpdateElbForWebsockets < Bosh::Aws::Migration
1
+ class UpdateElbForWebsockets < Bosh::AwsCliPlugin::Migration
2
2
  def execute
3
3
  validate_receipt
4
4
 
5
- vpc = Bosh::Aws::VPC.find(ec2, vpc_id)
5
+ vpc = Bosh::AwsCliPlugin::VPC.find(ec2, vpc_id)
6
6
  security_group = vpc.security_group_by_name(cfrouter_security_group_name)
7
7
 
8
8
  params = {"protocol" => "tcp", "ports" => "4443", "sources" => "0.0.0.0/0"}
@@ -61,7 +61,7 @@ class UpdateElbForWebsockets < Bosh::Aws::Migration
61
61
 
62
62
  class WebSocketElbHelpers
63
63
  def self.find_security_group_by_name(ec2, vpc_id, name)
64
- vpc = Bosh::Aws::VPC.find(ec2, vpc_id)
64
+ vpc = Bosh::AwsCliPlugin::VPC.find(ec2, vpc_id)
65
65
  security_group = vpc.security_group_by_name(name)
66
66
 
67
67
  err("AWS reports that security group #{name} does not exist") unless security_group
@@ -1,10 +1,10 @@
1
- class AddSecondaryAzToVpc < Bosh::Aws::Migration
2
- include Bosh::Aws::MigrationHelper
1
+ class AddSecondaryAzToVpc < Bosh::AwsCliPlugin::Migration
2
+ include Bosh::AwsCliPlugin::MigrationHelper
3
3
 
4
4
  def execute
5
5
  vpc_receipt = load_receipt("aws_vpc_receipt")
6
6
 
7
- vpc = Bosh::Aws::VPC.find(ec2, vpc_receipt["vpc"]["id"])
7
+ vpc = Bosh::AwsCliPlugin::VPC.find(ec2, vpc_receipt["vpc"]["id"])
8
8
 
9
9
  new_az = vpc_receipt["original_configuration"]["vpc"]["subnets"]["cf_elb2"]["availability_zone"]
10
10
 
@@ -1,4 +1,4 @@
1
- class <%= class_name %> < Bosh::Aws::Migration
1
+ class <%= class_name %> < Bosh::AwsCliPlugin::Migration
2
2
  def execute
3
3
 
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh_cli_plugin_aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3016.0
4
+ version: 1.3022.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-14 00:00:00.000000000 Z
11
+ date: 2015-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bosh-core
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3016.0
19
+ version: 1.3022.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.3016.0
26
+ version: 1.3022.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bosh_cli
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3016.0
33
+ version: 1.3022.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.3016.0
40
+ version: 1.3022.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bosh_aws_cpi
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.3016.0
47
+ version: 1.3022.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.3016.0
54
+ version: 1.3022.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bosh_cli_plugin_micro
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.3016.0
61
+ version: 1.3022.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.3016.0
68
+ version: 1.3022.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bosh-stemcell
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.3016.0
75
+ version: 1.3022.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.3016.0
82
+ version: 1.3022.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -138,7 +138,7 @@ dependencies:
138
138
  version: '0'
139
139
  description: |-
140
140
  BOSH plugin to easily create and delete an AWS VPC
141
- 10557b
141
+ 6073a7
142
142
  email: support@cloudfoundry.com
143
143
  executables: []
144
144
  extensions: []