elastic_whenever 0.7.0 → 1.0.0
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 +4 -4
- data/.github/workflows/build.yml +1 -1
- data/CHANGELOG.md +16 -0
- data/README.md +2 -2
- data/lib/elastic_whenever/option.rb +4 -6
- data/lib/elastic_whenever/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 890642297383c9a1dab1d88aa7700c2799474eb4dc9ab980b8a7933cb66600bb
|
4
|
+
data.tar.gz: 211049d5fff3cd653a350e1acd68fb61da25f6553c7efbf86b02158025dc79e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdc85050dfcc1bfafb3c75978e23643dc6ce11101bbda12fcccfbe49da5d748a53755ea74c77786997f7b7db92fdf4f6e8835829f869846f9f6862f7290d35d8
|
7
|
+
data.tar.gz: 2cca48030792406231b510547a1408e185c0da35cca308e99ac0a24f528717ca3518252bad2ff03d9cf3b7d51931780a766c757c1770aeef3c4023454e2683d5
|
data/.github/workflows/build.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
## v1.0.0 (2024-01-07)
|
2
|
+
|
3
|
+
Although this is a major version release, there are no notable incompatibilities. This means that the current behavior is stable enough that no major future changes are planned at this time.
|
4
|
+
|
5
|
+
### Enhancements
|
6
|
+
|
7
|
+
- [#69](https://github.com/wata727/elastic_whenever/pull/69): Improve profile support ([@mfittko](https://github.com/mfittko))
|
8
|
+
- Previously, a profile passed with the `--profile` flag was always used only for shared credentials, and could not be used to switch profiles for credentials issued by IAM Identity Center, etc.
|
9
|
+
- With this change, the passed profile will be used correctly to other credentials as well.
|
10
|
+
|
11
|
+
### Chores
|
12
|
+
|
13
|
+
- [#60](https://github.com/wata727/elastic_whenever/pull/60) [#64](https://github.com/wata727/elastic_whenever/pull/64) [#68](https://github.com/wata727/elastic_whenever/pull/68): CI against Ruby 3.1, 3.2, 3.3
|
14
|
+
- [#62](https://github.com/wata727/elastic_whenever/pull/62): fix small typo ([@kijimaD](https://github.com/kijimaD))
|
15
|
+
- [#65](https://github.com/wata727/elastic_whenever/pull/65): fix/typos-documentation ([@jotolo](https://github.com/jotolo))
|
16
|
+
|
1
17
|
## v0.7.0 (2021-09-25)
|
2
18
|
|
3
19
|
This release contains a major change to the behavior when updating tasks. In most cases, this change has no effect, but be aware of the change in behavior when omitting a revision of the task definition. In particular, if you are building a deployment workflow where the update timing of task definitions and the update timing of scheduled tasks are different, the revisions that are executed may be different.
|
data/README.md
CHANGED
@@ -34,9 +34,9 @@ Usage: elastic_whenever [options]
|
|
34
34
|
-s, --set variables Example: --set 'environment=staging'
|
35
35
|
--cluster cluster ECS cluster to run tasks
|
36
36
|
--task-definition task_definition
|
37
|
-
Task definition name, If omit a revision, use the latest revision of the family automatically. Example: --task-
|
37
|
+
Task definition name, If omit a revision, use the latest revision of the family automatically. Example: --task-definition oneoff-application:2
|
38
38
|
--container container Container name defined in the task definition
|
39
|
-
--launch-type launch_type Launch type. EC2 or FARGATE.
|
39
|
+
--launch-type launch_type Launch type. EC2 or FARGATE. Default: EC2
|
40
40
|
--assign-public-ip Assign a public IP. Default: DISABLED (FARGATE only)
|
41
41
|
--security-groups groups Example: --security-groups 'sg-2c503655,sg-72f0cb0a' (FARGATE only)
|
42
42
|
--subnets subnets Example: --subnets 'subnet-4973d63f,subnet-45827d1d' (FARGATE only)
|
@@ -78,13 +78,13 @@ module ElasticWhenever
|
|
78
78
|
opts.on('--cluster cluster', 'ECS cluster to run tasks') do |cluster|
|
79
79
|
@cluster = cluster
|
80
80
|
end
|
81
|
-
opts.on('--task-definition task_definition', 'Task definition name, If omit a revision, use the latest revision of the family automatically. Example: --task-
|
81
|
+
opts.on('--task-definition task_definition', 'Task definition name, If omit a revision, use the latest revision of the family automatically. Example: --task-definition oneoff-application:2') do |definition|
|
82
82
|
@task_definition = definition
|
83
83
|
end
|
84
84
|
opts.on('--container container', 'Container name defined in the task definition') do |container|
|
85
85
|
@container = container
|
86
86
|
end
|
87
|
-
opts.on('--launch-type launch_type', 'Launch type. EC2 or FARGATE.
|
87
|
+
opts.on('--launch-type launch_type', 'Launch type. EC2 or FARGATE. Default: EC2') do |launch_type|
|
88
88
|
@launch_type = launch_type
|
89
89
|
end
|
90
90
|
opts.on('--assign-public-ip', 'Assign a public IP. Default: DISABLED (FARGATE only)') do
|
@@ -128,15 +128,13 @@ module ElasticWhenever
|
|
128
128
|
end
|
129
129
|
end.parse(args)
|
130
130
|
|
131
|
-
@credentials = if
|
132
|
-
Aws::SharedCredentials.new(profile_name: profile)
|
133
|
-
elsif access_key && secret_key
|
131
|
+
@credentials = if access_key && secret_key
|
134
132
|
Aws::Credentials.new(access_key, secret_key)
|
135
133
|
end
|
136
134
|
end
|
137
135
|
|
138
136
|
def aws_config
|
139
|
-
@aws_config ||= { credentials: credentials, region: region }.delete_if { |_k, v| v.nil? }
|
137
|
+
@aws_config ||= { credentials: credentials, region: region, profile: profile }.delete_if { |_k, v| v.nil? }
|
140
138
|
end
|
141
139
|
|
142
140
|
def ecs_client
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic_whenever
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuma Watanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
|
-
rubygems_version: 3.
|
189
|
+
rubygems_version: 3.4.10
|
190
190
|
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: Manage ECS Scheduled Tasks like Whenever
|