ec2-host 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.yardopts +6 -0
- data/CHANGELOG.md +8 -0
- data/README.md +42 -8
- data/docs/EC2.html +132 -0
- data/docs/EC2/Host.html +889 -0
- data/docs/EC2/Host/CLI.html +616 -0
- data/docs/EC2/Host/Config.html +1193 -0
- data/docs/EC2/Host/EC2Client.html +273 -0
- data/docs/EC2/Host/HashUtil.html +178 -0
- data/docs/EC2/Host/HostData.html +1772 -0
- data/docs/EC2/Host/RoleData.html +932 -0
- data/docs/EC2/Host/StringUtil.html +359 -0
- data/docs/_index.html +201 -0
- data/docs/class_list.html +58 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +57 -0
- data/docs/css/style.css +339 -0
- data/docs/file.LICENSE.html +95 -0
- data/docs/file.README.html +323 -0
- data/docs/file_list.html +63 -0
- data/docs/frames.html +26 -0
- data/docs/index.html +323 -0
- data/docs/js/app.js +219 -0
- data/docs/js/full_list.js +181 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +489 -0
- data/docs/top-level-namespace.html +112 -0
- data/ec2-host.gemspec +1 -2
- data/{sample.conf → example/example.conf} +1 -1
- data/lib/ec2-host.rb +1 -1
- data/lib/ec2/host.rb +12 -4
- data/lib/ec2/host/config.rb +13 -15
- data/lib/ec2/host/ec2_client.rb +60 -0
- data/lib/ec2/host/host_data.rb +156 -103
- data/lib/ec2/host/role_data.rb +11 -7
- data/spec/host_spec.rb +67 -42
- data/spec/spec_helper.rb +6 -6
- data/terraform.tf +39 -0
- metadata +31 -22
- data/doc.sh +0 -5
- data/lib/ec2/host/client_util.rb +0 -44
- data/spec/README.md +0 -35
data/spec/README.md
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# How to run test
|
2
|
-
|
3
|
-
NOTE: Currently, mock is not supported yet. So, you have to create your own AWS account, and instances.
|
4
|
-
|
5
|
-
Configure .env file as
|
6
|
-
|
7
|
-
```
|
8
|
-
AWS_ACCESS_KEY_ID=
|
9
|
-
AWS_SECRET_ACCESS_KEY=
|
10
|
-
AWS_REGION=
|
11
|
-
EC2_HOST_CONFIG_FILE=.env
|
12
|
-
OPTIONAL_ARRAY_TAGS=Tags
|
13
|
-
OPTIONAL_STRING_TAGS=Service,Status
|
14
|
-
```
|
15
|
-
|
16
|
-
EC2 instance tags must be configured as followings:
|
17
|
-
|
18
|
-
```
|
19
|
-
[
|
20
|
-
{
|
21
|
-
Name: test
|
22
|
-
Roles: admin:admin,test
|
23
|
-
Service: test
|
24
|
-
Status: reserve
|
25
|
-
Tags: standby
|
26
|
-
}
|
27
|
-
{
|
28
|
-
Name: isucon4
|
29
|
-
Roles: isucon4:qual
|
30
|
-
Service: isucon4
|
31
|
-
Status: active
|
32
|
-
Tags: master
|
33
|
-
}
|
34
|
-
]
|
35
|
-
```
|