ecs_deployer 2.1.9 → 2.1.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 +5 -5
- data/README.md +8 -0
- data/lib/ecs_deployer/scheduled_task/target.rb +4 -8
- data/lib/ecs_deployer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 79381f95148f3232ae910b6142dd6e90ae099fb8e239e9e860fd84ee43ec48b7
|
4
|
+
data.tar.gz: d3803a93fcce132fb9a99d5afc3912447676ab471dc79c6b5260c9d67b5f0bc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36bcc808d2730200dc7559510f7f5e7af59f3bd352813d5cce2771362c67c6cccf5a323b973d3b3b1b3380b80a0d8b765136f0b74c2be82158d02f694b1a4704
|
7
|
+
data.tar.gz: d020e07919589e7eb45e5ea1cc217a378f48489f771a8a6224a57d0332162ab3c947c339786ec5eb4b5ea8be6d2ed64962123f61f1343372c895fef23627558a
|
data/README.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# Release news
|
2
|
+
|
3
|
+
I developed ECS deployment tool based on `ecs_deployer`.
|
4
|
+
|
5
|
+
http://github.com/metaps/genova
|
6
|
+
|
1
7
|
# ECS Deployer
|
2
8
|
|
3
9
|
[](https://badge.fury.io/rb/ecs_deployer)
|
@@ -17,6 +23,8 @@ Deploy Docker container on AWS ECS.
|
|
17
23
|
* Create
|
18
24
|
* Update
|
19
25
|
|
26
|
+
This package is used in [Genova (ECS Deployment Manager)](https://github.com/metaps/genova).
|
27
|
+
|
20
28
|
## Installation
|
21
29
|
|
22
30
|
Add this line to your application's Gemfile:
|
@@ -2,9 +2,7 @@ module EcsDeployer
|
|
2
2
|
module ScheduledTask
|
3
3
|
class Target
|
4
4
|
attr_reader :id
|
5
|
-
attr_accessor :arn, :
|
6
|
-
|
7
|
-
TARGET_ROLE = 'ecsEventsRole'.freeze
|
5
|
+
attr_accessor :arn, :cloudwatch_event_role_arn, :task_definition_arn, :task_count, :task_role_arn
|
8
6
|
|
9
7
|
# @param [String] cluster
|
10
8
|
# @param [String] id
|
@@ -19,12 +17,10 @@ module EcsDeployer
|
|
19
17
|
@arn = clusters[0].cluster_arn
|
20
18
|
@task_count = 1
|
21
19
|
@container_overrides = []
|
22
|
-
|
23
|
-
role(TARGET_ROLE)
|
24
20
|
end
|
25
21
|
|
26
|
-
def
|
27
|
-
@
|
22
|
+
def cloudwatch_event_role(cloudwatch_event_role)
|
23
|
+
@cloudwatch_event_role_arn = Aws::IAM::Role.new(cloudwatch_event_role, @aws_options).arn
|
28
24
|
end
|
29
25
|
|
30
26
|
def task_role(task_role)
|
@@ -59,7 +55,7 @@ module EcsDeployer
|
|
59
55
|
{
|
60
56
|
id: @id,
|
61
57
|
arn: @arn,
|
62
|
-
role_arn: @
|
58
|
+
role_arn: @cloudwatch_event_role_arn,
|
63
59
|
ecs_parameters: {
|
64
60
|
task_definition_arn: @task_definition_arn,
|
65
61
|
task_count: @task_count
|
data/lib/ecs_deployer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecs_deployer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- naomichi-y
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
221
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.6
|
222
|
+
rubygems_version: 2.7.6
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: Deploy application to ECS.
|