jets 1.9.15 → 1.9.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbb4b25f059987c3f62fdf3abc5f18d678fc1bb78df83cb32923f395293c7796
4
- data.tar.gz: f92f95e87d22fc44c323fcecfd5c0d44ca635429041775662974d736025aa2a0
3
+ metadata.gz: dc74f361074f592380325887f305cc4eff1008562e43e556301e1b65300cdd83
4
+ data.tar.gz: 34092fbfe781218f4ebb018e5ff0226064b5ad82d60acb1277cfa33c8f43b6ac
5
5
  SHA512:
6
- metadata.gz: 516b768c844390537687770079bb21a996dd4338857c0833127e5e3dbefb23a3fc8af65a8f0f38948ca438857854e9c1d8986d25d96d051e051ecb642d6f9672
7
- data.tar.gz: 63e1e9a9b7cddb7f63c274732cd2bb05ecc338c6a3a33adc09363284b382d247eee22409ddf7090333fa75fba674352425712ec567c1e765bd88ab1505b801f6
6
+ metadata.gz: ea55258d76d8188492c540b72551135bcf65975a1326e601b2e5c2437caad3227c845be61931c0901fcc2462ecdb11b418afe762f18007b06da924123ad06b6a
7
+ data.tar.gz: abe052098a5a86d513b2766d8af0ece5e28e6fa32d17fda299dd77693d16028cec1dbcd921b57ab9c2c79b5732cc262030a728fb55a6c5d3c795927c56492b7b
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [1.9.16]
7
+ - Removed #290, can use the application-wide IAM policy instead
8
+
6
9
  ## [1.9.15]
7
10
  - #289 add sqs url to shared sqs queue resource
8
11
  - #290 allow adjustment for preheat job iam policy
@@ -187,7 +187,6 @@ class Jets::Application
187
187
  def set_iam_policy
188
188
  config.iam_policy ||= self.class.default_iam_policy
189
189
  config.managed_policy_definitions ||= [] # default empty
190
- config.prewarm_job_iam_policy ||= self.class.default_prewarm_job_iam_policy
191
190
  end
192
191
 
193
192
  def self.default_iam_policy
@@ -221,23 +220,6 @@ class Jets::Application
221
220
  policies
222
221
  end
223
222
 
224
- def self.default_prewarm_job_iam_policy
225
- [
226
- {
227
- sid: "Statement1",
228
- action: ["logs:*"],
229
- effect: "Allow",
230
- resource: "arn:aws:logs:#{Jets.aws.region}:#{Jets.aws.account}:log-group:#{Jets.config.project_namespace}-*",
231
- },
232
- {
233
- sid: "Statement2",
234
- action: ["lambda:InvokeFunction", "lambda:InvokeAsync"],
235
- effect: "Allow",
236
- resource: "arn:aws:lambda:#{Jets.aws.region}:#{Jets.aws.account}:function:#{Jets.config.project_namespace}-*",
237
- }
238
- ]
239
- end
240
-
241
223
  # It is pretty easy to attempt to set environment variables without
242
224
  # the correct AWS Environment.Variables path struture.
243
225
  # Auto-fix it for convenience.
@@ -7,7 +7,20 @@ class Jets::PreheatJob < ApplicationJob
7
7
 
8
8
  class_timeout 30
9
9
  class_memory 1024
10
- class_iam_policy(Jets.config.prewarm_job_iam_policy)
10
+ class_iam_policy(
11
+ {
12
+ sid: "Statement1",
13
+ action: ["logs:*"],
14
+ effect: "Allow",
15
+ resource: "arn:aws:logs:#{Jets.aws.region}:#{Jets.aws.account}:log-group:#{Jets.config.project_namespace}-*",
16
+ },
17
+ {
18
+ sid: "Statement2",
19
+ action: ["lambda:InvokeFunction", "lambda:InvokeAsync"],
20
+ effect: "Allow",
21
+ resource: "arn:aws:lambda:#{Jets.aws.region}:#{Jets.aws.account}:function:#{Jets.config.project_namespace}-*",
22
+ }
23
+ )
11
24
 
12
25
  rate(PREWARM_RATE) if torching
13
26
  def torch
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "1.9.15"
2
+ VERSION = "1.9.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.15
4
+ version: 1.9.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-08 00:00:00.000000000 Z
11
+ date: 2019-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer