jets 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +5 -0
- data/README.md +1 -5
- data/backers.md +0 -5
- data/lib/jets/cfn/builders/parent_builder.rb +19 -0
- data/lib/jets/resource/lambda/function/environment.rb +4 -2
- data/lib/jets/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: 8fedba281ee9d6ac31a44184b49bbc8fe15d309a3f4d58142cfa25c4ddebc153
|
4
|
+
data.tar.gz: e73ee950202ea1786c881b43abc95c03bc4c3e7ef44b04265997eca2f4b9211b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57070368542b8a767fbf8553f0c627b36432e691ae07f1f41488a0d8af830bffd1ed84a71633fe971df6b45bcf79ff8862f2d4513d22e4a1981b633f36cbb8bd
|
7
|
+
data.tar.gz: 32ba83eb4d4e87a8c92b5d7ec8d573ae2b36ff558fedbae7bb33f1ebe5dbcb36baf2f64b89b2a05d2e56e52bcd2145964a0770f7a56efdb48d1a925498c7f177
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.7
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@
|
|
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
|
+
## [3.2.1] - 2023-05-03
|
7
|
+
- [#637](https://github.com/boltops-tools/jets/pull/637) Readme: Replace "splat out" with "had" a baby
|
8
|
+
- [#638](https://github.com/boltops-tools/jets/pull/638) feature: update an array of reserved variables in aws lambda
|
9
|
+
- [#639](https://github.com/boltops-tools/jets/pull/639) fix assets upload during deploy
|
10
|
+
|
6
11
|
## [3.2.0] - 2022-12-03
|
7
12
|
- [#631](https://github.com/boltops-tools/jets/pull/631) Implement vpc_endpoint_ids configuration
|
8
13
|
- [#634](https://github.com/boltops-tools/jets/pull/634) Custom domain messaging
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<a href="http://rubyonjets.com"><img src="http://rubyonjets.com/img/logos/jets-logo-full.png" /></a>
|
3
3
|
</div>
|
4
4
|
|
5
|
-
Ruby and Lambda
|
5
|
+
Ruby and Lambda had a baby and that child's name is [Jets](http://rubyonjets.com/).
|
6
6
|
|
7
7
|
![Build Status](https://codebuild.us-west-2.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoiZ08vK2hjOHczQUVoUDhSYnBNNUU4T0gxQWJuOTlLaXpwVGQ1NjJ3NnVDY1dSdFVXQ3d2VXVSQzRFcU1qd1JPMndFZlByRktIcTUrZm5GWlM5dHpjM1ZrPSIsIml2UGFyYW1ldGVyU3BlYyI6Imluc1Qrd25GanhUdHlidjUiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D&branch=master)
|
8
8
|
[![CircleCI](https://circleci.com/gh/boltops-tools/jets.svg?style=svg)](https://circleci.com/gh/boltops-tools/jets)
|
@@ -16,10 +16,6 @@ Please **watch/star** this repo to help grow and support the project.
|
|
16
16
|
|
17
17
|
**Upgrading**: If you are upgrading Jets, please check on the [Upgrading Notes](http://rubyonjets.com/docs/extras/upgrading/).
|
18
18
|
|
19
|
-
## Sponsors
|
20
|
-
|
21
|
-
[![](https://img.boltops.com/boltops/tools/jets/sponsors/arist.png)](https://arist.co/)
|
22
|
-
|
23
19
|
## What is Ruby on Jets?
|
24
20
|
|
25
21
|
Jets is a Ruby Serverless Framework. Jets allows you to create serverless applications with a beautiful language: Ruby. It includes everything required to build an application and deploy it to AWS Lambda.
|
data/backers.md
CHANGED
@@ -11,10 +11,5 @@ Funds donated via Patreon go directly to support Tung Nguyen's full-time work on
|
|
11
11
|
<h2 align="center">Backers via Patreon</h2>
|
12
12
|
|
13
13
|
<!--10 start-->
|
14
|
-
- Erlend Finvåg
|
15
|
-
- Nate Clark
|
16
|
-
- Hirokatsu Endo
|
17
|
-
- Michael Choi
|
18
|
-
- Phan Lam
|
19
14
|
- Theron Welch
|
20
15
|
<!--10 end-->
|
@@ -26,7 +26,26 @@ module Jets::Cfn::Builders
|
|
26
26
|
add_description("Jets: #{Jets.version} Code: #{Util::Source.version}")
|
27
27
|
|
28
28
|
# Initial s3 bucket, used to store code zipfile and templates Jets generates
|
29
|
+
#
|
30
|
+
# AWS changed the default behavior of s3 buckets to block public access
|
31
|
+
# https://aws.amazon.com/blogs/aws/amazon-s3-block-public-access-another-layer-of-protection-for-your-accounts-and-buckets/
|
32
|
+
# https://github.com/aws-amplify/amplify-cli/issues/12503
|
33
|
+
#
|
34
|
+
# Jets uploads assets to s3 bucket with acl: "public-read" here
|
35
|
+
# https://github.com/boltops-tools/jets/blob/c5858ec2706a606665a92c3ada3f16ae4c753372/lib/jets/cfn/upload.rb#L97
|
36
|
+
#
|
37
|
+
# Use minimal s3 bucket policy to allow public read access to assets.
|
38
|
+
# Leave the other options as comments to help document the default behavior.
|
29
39
|
resource = Jets::Resource::S3::Bucket.new(logical_id: "s3_bucket",
|
40
|
+
PublicAccessBlockConfiguration: {
|
41
|
+
BlockPublicAcls: false,
|
42
|
+
# BlockPublicPolicy: false,
|
43
|
+
# IgnorePublicAcls: false,
|
44
|
+
# RestrictPublicBuckets: false
|
45
|
+
},
|
46
|
+
OwnershipControls: {
|
47
|
+
Rules: [{ObjectOwnership: "ObjectWriter"}]
|
48
|
+
},
|
30
49
|
bucket_encryption: {
|
31
50
|
server_side_encryption_configuration: [
|
32
51
|
server_side_encryption_by_default: {
|
@@ -36,21 +36,23 @@ class Jets::Resource::Lambda::Function
|
|
36
36
|
exit 1
|
37
37
|
end
|
38
38
|
|
39
|
-
# https://docs.aws.amazon.com/lambda/latest/dg/
|
39
|
+
# https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html
|
40
40
|
def reserved_variables
|
41
41
|
%w[
|
42
42
|
_HANDLER
|
43
|
+
AWS_DEFAULT_REGION
|
43
44
|
AWS_REGION
|
44
45
|
AWS_EXECUTION_ENV
|
45
46
|
AWS_LAMBDA_FUNCTION_NAME
|
46
47
|
AWS_LAMBDA_FUNCTION_MEMORY_SIZE
|
47
48
|
AWS_LAMBDA_FUNCTION_VERSION
|
49
|
+
AWS_LAMBDA_INITIALIZATION_TYPE
|
48
50
|
AWS_LAMBDA_LOG_GROUP_NAME
|
49
51
|
AWS_LAMBDA_LOG_STREAM_NAME
|
52
|
+
AWS_ACCESS_KEY
|
50
53
|
AWS_ACCESS_KEY_ID
|
51
54
|
AWS_SECRET_ACCESS_KEY
|
52
55
|
AWS_SESSION_TOKEN
|
53
|
-
TZ
|
54
56
|
LAMBDA_TASK_ROOT
|
55
57
|
LAMBDA_RUNTIME_DIR
|
56
58
|
AWS_LAMBDA_RUNTIME_API
|
data/lib/jets/version.rb
CHANGED
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: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -1103,7 +1103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1103
1103
|
- !ruby/object:Gem::Version
|
1104
1104
|
version: '0'
|
1105
1105
|
requirements: []
|
1106
|
-
rubygems_version: 3.
|
1106
|
+
rubygems_version: 3.4.6
|
1107
1107
|
signing_key:
|
1108
1108
|
specification_version: 4
|
1109
1109
|
summary: Ruby Serverless Framework
|