Skip to content

Commit

Permalink
Up requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Sep 4, 2024
1 parent 38424c9 commit 17722ec
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 29 deletions.
5 changes: 3 additions & 2 deletions space2stats_api/cdk/aws_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from aws_cdk import aws_apigatewayv2 as apigatewayv2
from aws_cdk import aws_apigatewayv2_integrations as integrations
from aws_cdk import aws_certificatemanager as acm
from aws_cdk import aws_s3 as s3
from aws_cdk import aws_lambda as _lambda
from aws_cdk import aws_s3 as s3
from aws_cdk.aws_lambda_python_alpha import PythonFunction
from constructs import Construct
from settings import AppSettings, DeploymentSettings
Expand All @@ -17,7 +17,8 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
deployment_settings = DeploymentSettings(_env_file="./aws_deployment.env")

bucket = s3.Bucket(
self, "LargeResponseBucket",
self,
"LargeResponseBucket",
lifecycle_rules=[s3.LifecycleRule(expiration=Duration.days(1))],
)

Expand Down
110 changes: 86 additions & 24 deletions space2stats_api/src/poetry.lock

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

2 changes: 1 addition & 1 deletion space2stats_api/src/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pydantic-settings = ">=2.0.0"
typing_extensions = "*"
starlette-cramjam = ">=0.3,<0.4"
mangum = "*"
asgi-s3-response-middleware = "^0.0.1"
asgi-s3-response-middleware = "^0.0.2"
boto3 = "^1.35.11"

[tool.poetry.group.lambda.dependencies]
Expand Down
9 changes: 7 additions & 2 deletions space2stats_api/src/space2stats/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@
from starlette.requests import Request
from starlette_cramjam.middleware import CompressionMiddleware

from .db import connect_to_db, close_db_connection
from .main import get_summaries_from_geom, get_available_fields, settings, SummaryRequest
from .db import close_db_connection, connect_to_db
from .main import (
SummaryRequest,
get_available_fields,
get_summaries_from_geom,
settings,
)

s3_client = boto3.client("s3")

Expand Down

0 comments on commit 17722ec

Please sign in to comment.