akashi 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8214a44501817863259b9c9f21a59b33868b09fb
4
- data.tar.gz: 08115ff57f691debed3554d019364d8364ebeae8
3
+ metadata.gz: 4bc8cc03877a216bb9e2e079892ebb77e2072584
4
+ data.tar.gz: f050ba5718cdc3cdbe81257a9623e51e2e3be1ba
5
5
  SHA512:
6
- metadata.gz: 9e4872654b234a355967ef62df2d3688c57be9d14e7a2d691e73c83d02b0c02f9e908877224616db4020fa5a96c87bc31677e092a7ba4cb8a524b7d363cec570
7
- data.tar.gz: 356cf58cfc280dae71fa12023eb488ae4462911ac0e31a7042d1a37454d6115cfc8c95e412be73d11d6d2d022b103911e25cf72c4ce3bacbb98c55fcc696d0d9
6
+ metadata.gz: b80d795142b139c6960db380e14250fafd7c69a10c77ca56654b2a8f0b45fb276eeb4da43dc23bfc7bb44eadb2065507dd364533fe20c6bebf9f1ae5c7d8e064
7
+ data.tar.gz: 7dac4e87505cf753c3a1437fa48021061a495d56b0f5bdb0d4b57c6bde1d891405a24f3cab9fe81efd25bb3919133cf1b9ad1ec33aa7836f925cf35ef0916c62
@@ -1,24 +1,25 @@
1
1
  ec2:
2
- instances:
2
+ instance:
3
3
  gateway: &instance_for_gateway
4
- ami_id:
4
+ ami_id: ""
5
5
  instance_class: m3.medium
6
- allocated_storage: 8 # GB
7
6
  web: &instance_for_web
8
- ami_id:
7
+ ami_id: ""
9
8
  instance_class: m3.medium
10
- allocated_storage: 8 # GB
11
- public_key:
9
+ public_key: ""
12
10
  rds:
13
11
  allocated_storage: 5 # GB
14
12
  instance_class: db.t1.micro
15
13
  multi_az: false
16
14
  availability_zone: ap-northeast-1c
17
15
  engine_version: 5.6.17
16
+ password: ""
17
+ parameter_group_name: ""
18
18
  elb:
19
19
  ssl_certificate:
20
- server_certificate:
21
- private_key_path:
20
+ server_certificate: ""
21
+ private_key_path: ""
22
+ certificate_chain: ""
22
23
  health_check:
23
24
  target: HTTP:80/ping
24
25
  role:
@@ -66,11 +66,10 @@ module Akashi
66
66
 
67
67
  (subnet.instance.number_of_instances || 1).times do
68
68
  ec2_instances[role_name] << Akashi::Ec2::Instance.create(
69
- ami: ami,
70
- instance_class: subnet.instance.instance_class,
71
- security_group: security_group[role_name],
72
- subnet: _subnet,
73
- allocated_storage: subnet.instance.allocated_storage || 8,
69
+ ami: ami,
70
+ instance_class: subnet.instance.instance_class,
71
+ security_group: security_group[role_name],
72
+ subnet: _subnet,
74
73
  )
75
74
  end
76
75
  end
@@ -6,7 +6,7 @@ module Akashi
6
6
  :key_name, :subnet_id, :vpc_id, :status, :statub_code
7
7
 
8
8
  class << self
9
- def create(ami:, instance_class:, security_group:, subnet:, allocated_storage:)
9
+ def create(ami:, instance_class:, security_group:, subnet:)
10
10
  name = "#{subnet.name}-#{next_number(subnet: subnet)}"
11
11
 
12
12
  response = Akashi::Aws.ec2.instances.create(
@@ -16,15 +16,6 @@ module Akashi
16
16
  subnet_id: subnet.id,
17
17
  instance_type: instance_class,
18
18
  associate_public_ip_address: true,
19
- block_device_mappings: [
20
- {
21
- device_name: ami.root_device_name,
22
- ebs: {
23
- volume_size: allocated_storage,
24
- delete_on_termination: true,
25
- },
26
- },
27
- ],
28
19
  )
29
20
 
30
21
  new(response.id).tap do |instance|
@@ -1,3 +1,3 @@
1
1
  module Akashi
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akashi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - asonas