Skip to content

Commit 85fa36f

Browse files
🔧 Merge policy changes into template. (#1395)
✨ update CHANGELOG.md ⬆️ increment version 0.60.2 -> 0.61.0 Co-authored-by: shane <shane.cousins@kiconiaworks.com>
1 parent 79c5299 commit 85fa36f

File tree

4 files changed

+40
-108
lines changed

4 files changed

+40
-108
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# Zappa Changelog
22

3+
## 0.61.0
4+
5+
* Add API Gateway v2 (HTTP API) support (#1391, #851, #1389)
6+
* Add Lambda function URL support (#1183, #1121)
7+
* Add `settings` command for generating zappa_settings.json via CLI/ENVARS (#1385, #988)
8+
* Add Lambda invocation --qualifier and --client-context options for invoke and manage commands (#1394, #1368)
9+
* Fix cloudwatch logging - restore root log level functionality (#1347, #1336)
10+
* Update Lambda function URL permissions to include InvokeFunction action (#1393)
11+
* Remove kappa dependency, internalize components (#1386, #954)
12+
* Remove deprecated pkg_resources usage, migrate to importlib (#1384)
13+
* Migrate from os.path to pathlib.Path (#1384, #1386)
14+
* Replace deprecated datetime.utcnow() with datetime.now(timezone.utc) (#1384)
15+
* Replace deprecated click.BaseCommand with click.Command (#1384)
16+
* Move IAM policies to external JSON files for better maintainability (#1391)
17+
18+
## 0.60.2
19+
20+
* Fix infinite redirects issue (#1382, #1380)
21+
* Add arm64 architecture support (#1379)
22+
23+
## 0.60.1
24+
25+
* Fix conflict in V2 Event handling (#1377, #1182)
26+
27+
## 0.60.0
28+
29+
* Add Python 3.13 support (#1364)
30+
* Add Lambda SnapStart support (#1367)
31+
* Remove deprecated Python 3.8 runtime support (#1374)
32+
* Fix incorrect error messaging in CLI (#1314)
33+
* Remove usage of copytree from distutils (#1352)
34+
* Fix create_handler_venv win32 case where stderror_result is None (#1353)
35+
* Replace invalid website links with GitHub links (#1371)
36+
* Add note about character limit of function path in events (#1189)
37+
* Add note about AWS Lambda Test Console available commands (#1375)
38+
* Resolve warnings in regex library (#1376)
39+
340
## 0.59.0
441

542
See [release notes](https://github.com/zappa/Zappa/releases/tag/0.59.0)

zappa/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ def running_in_docker() -> bool:
3131
)
3232
raise RuntimeError(err_msg)
3333

34-
__version__ = "0.60.2"
34+
__version__ = "0.61.0"

zappa/core.py

Lines changed: 0 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -63,112 +63,6 @@
6363
attach_policy_filepath = POLICIES_DIRECTORY / "attach_policy.json"
6464
assert attach_policy_filepath.exists(), f"Missing policy file: {attach_policy_filepath}"
6565
ATTACH_POLICY = attach_policy_filepath.read_text()
66-
ASSUME_POLICY = """{
67-
"Version": "2012-10-17",
68-
"Statement": [
69-
{
70-
"Sid": "",
71-
"Effect": "Allow",
72-
"Principal": {
73-
"Service": [
74-
"apigateway.amazonaws.com",
75-
"lambda.amazonaws.com",
76-
"events.amazonaws.com"
77-
]
78-
},
79-
"Action": "sts:AssumeRole"
80-
}
81-
]
82-
}"""
83-
84-
ATTACH_POLICY = """{
85-
"Version": "2012-10-17",
86-
"Statement": [
87-
{
88-
"Effect": "Allow",
89-
"Action": [
90-
"logs:*"
91-
],
92-
"Resource": "arn:aws:logs:*:*:*"
93-
},
94-
{
95-
"Effect": "Allow",
96-
"Action": [
97-
"lambda:InvokeFunction",
98-
"lambda:InvokeFunctionUrl"
99-
],
100-
"Resource": [
101-
"*"
102-
]
103-
},
104-
{
105-
"Effect": "Allow",
106-
"Action": [
107-
"xray:PutTraceSegments",
108-
"xray:PutTelemetryRecords"
109-
],
110-
"Resource": [
111-
"*"
112-
]
113-
},
114-
{
115-
"Effect": "Allow",
116-
"Action": [
117-
"ec2:AttachNetworkInterface",
118-
"ec2:CreateNetworkInterface",
119-
"ec2:DeleteNetworkInterface",
120-
"ec2:DescribeInstances",
121-
"ec2:DescribeNetworkInterfaces",
122-
"ec2:DetachNetworkInterface",
123-
"ec2:ModifyNetworkInterfaceAttribute",
124-
"ec2:ResetNetworkInterfaceAttribute"
125-
],
126-
"Resource": "*"
127-
},
128-
{
129-
"Effect": "Allow",
130-
"Action": [
131-
"s3:*"
132-
],
133-
"Resource": "arn:aws:s3:::*"
134-
},
135-
{
136-
"Effect": "Allow",
137-
"Action": [
138-
"kinesis:*"
139-
],
140-
"Resource": "arn:aws:kinesis:*:*:*"
141-
},
142-
{
143-
"Effect": "Allow",
144-
"Action": [
145-
"sns:*"
146-
],
147-
"Resource": "arn:aws:sns:*:*:*"
148-
},
149-
{
150-
"Effect": "Allow",
151-
"Action": [
152-
"sqs:*"
153-
],
154-
"Resource": "arn:aws:sqs:*:*:*"
155-
},
156-
{
157-
"Effect": "Allow",
158-
"Action": [
159-
"dynamodb:*"
160-
],
161-
"Resource": "arn:aws:dynamodb:*:*:*"
162-
},
163-
{
164-
"Effect": "Allow",
165-
"Action": [
166-
"route53:*"
167-
],
168-
"Resource": "*"
169-
}
170-
]
171-
}"""
17266

17367
FUNCTION_URL_PUBLIC_PERMISSION_RULES = (
17468
("FunctionURLAllowPublicAccess", "lambda:InvokeFunctionUrl", True),

zappa/policies/attach_policy.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
{
1212
"Effect": "Allow",
1313
"Action": [
14-
"lambda:InvokeFunction"
14+
"lambda:InvokeFunction",
15+
"lambda:InvokeFunctionUrl"
1516
],
1617
"Resource": [
1718
"*"

0 commit comments

Comments
 (0)