Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lambda_layer/database/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ greenlet==3.5.0 ; python_version >= "3.11" and python_version < "3.13" and (plat
idna==3.13 ; python_version >= "3.11" and python_version < "3.13" \
--hash=sha256:585ea8fe5d69b9181ec1afba340451fba6ba764af97026f92a91d4eef164a242 \
--hash=sha256:892ea0cde124a99ce773decba204c5552b69c3c67ffd5f232eb7696135bc8bb3
imap-data-access==0.40.1 ; python_version >= "3.11" and python_version < "3.13" \
--hash=sha256:184c4db2d9dd7a3dbf3dbc150405a61d12f603b866e166a4ae04bd1df8aac6ab \
--hash=sha256:8142457ea38b577d05e48fdca31e6199222ab562229a6c0ecb1dbf2b92c84832
imap-data-access==0.41.0 ; python_version >= "3.11" and python_version < "3.13" \
--hash=sha256:88c550e41c8e9fcb881787e6911bd21a5b4253be3e5ba7176a51151324588169 \
--hash=sha256:927966c3d0b16d9a1f8be23abdc34cff28afdec377a6e72ade7ae27496108557
jmespath==1.1.0 ; python_version >= "3.11" and python_version < "3.13" \
--hash=sha256:472c87d80f36026ae83c6ddd0f1d05d4e510134ed462851fd5f754c8c3cbb88d \
--hash=sha256:a5663118de4908c91729bea0acadca56526eb2698e83de10cd116ae0f4e97c64
Expand Down
6 changes: 3 additions & 3 deletions lambda_layer/spice/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ greenlet==3.5.0 ; python_version >= "3.11" and python_version < "3.13" and (plat
idna==3.13 ; python_version >= "3.11" and python_version < "3.13" \
--hash=sha256:585ea8fe5d69b9181ec1afba340451fba6ba764af97026f92a91d4eef164a242 \
--hash=sha256:892ea0cde124a99ce773decba204c5552b69c3c67ffd5f232eb7696135bc8bb3
imap-data-access==0.40.1 ; python_version >= "3.11" and python_version < "3.13" \
--hash=sha256:184c4db2d9dd7a3dbf3dbc150405a61d12f603b866e166a4ae04bd1df8aac6ab \
--hash=sha256:8142457ea38b577d05e48fdca31e6199222ab562229a6c0ecb1dbf2b92c84832
imap-data-access==0.41.0 ; python_version >= "3.11" and python_version < "3.13" \
--hash=sha256:88c550e41c8e9fcb881787e6911bd21a5b4253be3e5ba7176a51151324588169 \
--hash=sha256:927966c3d0b16d9a1f8be23abdc34cff28afdec377a6e72ade7ae27496108557
jmespath==1.1.0 ; python_version >= "3.11" and python_version < "3.13" \
--hash=sha256:472c87d80f36026ae83c6ddd0f1d05d4e510134ed462851fd5f754c8c3cbb88d \
--hash=sha256:a5663118de4908c91729bea0acadca56526eb2698e83de10cd116ae0f4e97c64
Expand Down
76 changes: 17 additions & 59 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ classifiers = [
# the correct version and hash are used:
# poetry export -f requirements.txt -o lambda_layer/database/requirements.txt --with layer-database
dependencies = [
"imap-data-access>=0.40.1",
"imap-data-access>=0.41.0",
"boto3>=1.26.78,<2",
"SQLAlchemy<=3.0.0",
"numpy (>=2.4.6,<3.0.0)"
Expand All @@ -43,7 +43,7 @@ poetry-plugin-export = ">=1.8"
[project.optional-dependencies]
dev = ["pre-commit>=3.3.3,<4", "ruff==0.2.1"]
doc = ["sphinx>=7.1.0,<8", "myst-parser>=2.0.0,<3", "pydata-sphinx-theme>=0.13.3"]
test = ["pytest==6.2.5", "pytest-cov>=4.0.0,<5", "moto>=4.1.3,<5"]
test = ["pytest>=7.4.0,<9", "pytest-cov>=4.0.0,<5", "moto>=4.1.3,<5"]
tool = ["alembic (>=1.18.4,<2.0.0)"]

[tool.poetry.group.cdk-install.dependencies]
Expand Down
11 changes: 8 additions & 3 deletions sds_data_manager/constructs/sds_api_manager_construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def add_stable_route(api, base_path, http_method, lambda_function, prefix_list):
class SdsApiManager(Construct):
"""Construct for API Management."""

def __init__(
def __init__( # noqa: PLR0915
self,
scope: Construct,
construct_id: str,
Expand Down Expand Up @@ -163,8 +163,10 @@ def __init__(
# account only can allow upload through API key.
if account_name == "prod":
upload_route_prefixes = ["/api-key"]
release_route_prefixes = ["/api-key"]
else:
upload_route_prefixes = auth_route_prefixes
release_route_prefixes = ["/api-key"]

# {proxy+} is used to allow for any pathParams after /upload/
add_stable_route(
Expand Down Expand Up @@ -375,16 +377,19 @@ def __init__(
security_groups=[rds_security_group],
environment={
"SECRET_NAME": db_secret_name,
"IMAP_DATA_DIR": "/tmp", # noqa: S108
"S3_BUCKET": data_bucket.bucket_name,
"REGION": env.region,
},
layers=layers,
)
for prefix in auth_route_prefixes:
# {proxy+} is used to allow for any pathParams after /processing-jobs/
for prefix in release_route_prefixes:
api.add_route(
route=f"{prefix}/release",
http_method="GET",
lambda_function=release_api_lambda,
)
release_api_lambda.add_to_role_policy(s3_read_policy)

rds_secret = secrets.Secret.from_secret_name_v2(
self, "rds_secret", db_secret_name
Expand Down
Loading
Loading