jets 4.0.5 → 4.0.7

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
  SHA256:
3
- metadata.gz: 9573f84496ce6067ec6fd2ab846a9387c65755aea56eba1ab24ed35cf2a9cb04
4
- data.tar.gz: bc403254b13de9d7db49a146d254b3269b9b02b748e504c98f88ebcd293c20be
3
+ metadata.gz: c4ec37e107874644d56fcb4afc5b8bc6fd2abaefc435e6e3c3f1d6a9175a9438
4
+ data.tar.gz: 4a99dda3fe2085be08a66652d7be91b7d74a0e132e63b0f11039b67adc6a0ed6
5
5
  SHA512:
6
- metadata.gz: e81ee110ee967638949b27431392dda0717497d85ff5bb58613373088695be8b4aaaff706a9fbf7fedcf38fffe33d9bcb8842d1068cf9077637c3616d93fb822
7
- data.tar.gz: fa499faf963ecdadbd9cfe0372dd9f02b1378550800a72496fac32b3e8438e05aa0763e9a473e7cfc02545fcaa5e945f7487735be754ee09eeb3950ed5f3d40d
6
+ metadata.gz: cdd2a1341f4a8c8ea46844c3790adbfede50b71c1f2099f99d6dfea5ac60db0137c4af40068746055407254b6e2449c2d8197a8b43823289652f29475c1d3dfa
7
+ data.tar.gz: 31f7cc1dce0f167f990aed2c71e94d2817ea6fa475df90d67df8fcc3ef096e6ed43980c88b13d95d2a237ace6600f2f76f60d1876d88746b7691386c3ef33049
data/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
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
+ ## [4.0.7] - 2023-10-20
7
+ - [#671](https://github.com/boltops-tools/jets/pull/671) fix preheat warm job iam role reference
8
+
9
+ ## [4.0.6] - 2023-10-20
10
+ - [#670](https://github.com/boltops-tools/jets/pull/670) Fixes IAM role permissions for PreheatJob
11
+
6
12
  ## [4.0.5] - 2023-10-19
7
13
  - [#665](https://github.com/boltops-tools/jets/pull/665) only add add_stage_name when request is present
8
14
  - [#669](https://github.com/boltops-tools/jets/pull/669) Add optional command args to the jets runner command.
@@ -41,6 +41,30 @@ class Jets::Application
41
41
  Resource: "*",
42
42
  }
43
43
  end
44
+
45
+ # Used by app/jobs/jets/preheat_job.rb
46
+ def preheat_job_iam_policy
47
+ policy = [
48
+ {
49
+ Sid: "Statement1",
50
+ Action: ["logs:*"],
51
+ Effect: "Allow",
52
+ Resource: [{
53
+ "Fn::Sub": "arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/${WarmLambdaFunction}"
54
+ }]
55
+ },
56
+ {
57
+ Sid: "Statement2",
58
+ Action: ["lambda:InvokeFunction", "lambda:InvokeAsync"],
59
+ Effect: "Allow",
60
+ Resource: [{
61
+ "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:#{Jets.project_namespace}-*"
62
+ }]
63
+ }
64
+ ]
65
+ policy << vpc_iam_policy_statement if Jets.config.function.vpc_config
66
+ policy
67
+ end
44
68
  end
45
69
 
46
70
  def default_config
@@ -200,29 +224,5 @@ class Jets::Application
200
224
  app/shared/functions
201
225
  ]
202
226
  end
203
-
204
- # Used by app/jobs/jets/preheat_job.rb
205
- def preheat_job_iam_policy
206
- policy = [
207
- {
208
- Sid: "Statement1",
209
- Action: ["logs:*"],
210
- Effect: "Allow",
211
- Resource: [{
212
- "Fn::Sub": "arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/${JetsPreheatJobWarmLambdaFunction}"
213
- }]
214
- },
215
- {
216
- Sid: "Statement2",
217
- Action: ["lambda:InvokeFunction", "lambda:InvokeAsync"],
218
- Effect: "Allow",
219
- Resource: [{
220
- "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:#{Jets.project_namespace}-*"
221
- }]
222
- }
223
- ]
224
- policy << Jets::Application.vpc_iam_policy_statement if Jets.config.function.vpc_config
225
- policy
226
- end
227
227
  end
228
228
  end
@@ -7,7 +7,7 @@ class Jets::PreheatJob < ApplicationJob
7
7
 
8
8
  class_timeout 30
9
9
  class_memory 1024
10
- class_iam_policy(Jets.config.preheat_job_iam_policy)
10
+ class_iam_policy(Jets::Application.preheat_job_iam_policy)
11
11
 
12
12
  rate(PREWARM_RATE) if torching
13
13
  def torch
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "4.0.5"
2
+ VERSION = "4.0.7"
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: 4.0.5
4
+ version: 4.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-19 00:00:00.000000000 Z
11
+ date: 2023-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer