Skip to content

fix: #226 - fix import references for python files in layer module in Lambda Layer #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion source/layer/applogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from datetime import date

from botocore.exceptions import ClientError
from layer import awsapi_cached_client
from . import awsapi_cached_client

LOG_MAX_BATCH_SIZE = 1048576 # Controls when the buffer is flushed to the stream
LOG_ENTRY_ADDITIONAL = 26
Expand Down
2 changes: 1 addition & 1 deletion source/layer/cloudwatch_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import TYPE_CHECKING, Any, cast

import boto3
from layer.logger import Logger
from .logger import Logger

if TYPE_CHECKING:
from mypy_boto3_cloudwatch import CloudWatchClient
Expand Down
2 changes: 1 addition & 1 deletion source/layer/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import boto3
from botocore.exceptions import ClientError
from layer import awsapi_cached_client
from . import awsapi_cached_client

if TYPE_CHECKING:
from mypy_boto3_ssm.client import SSMClient
Expand Down
4 changes: 2 additions & 2 deletions source/layer/sechub_findings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from typing import Any, Union

from botocore.exceptions import ClientError
from layer.awsapi_cached_client import AWSCachedClient
from layer.utils import publish_to_sns
from .awsapi_cached_client import AWSCachedClient
from .utils import publish_to_sns

# Get AWS region from Lambda environment. If not present then we're not
# running under lambda, so defaulting to us-east-1
Expand Down
4 changes: 2 additions & 2 deletions source/layer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

import boto3
from botocore.exceptions import UnknownRegionError
from layer.awsapi_cached_client import AWSCachedClient
from layer.logger import Logger
from .awsapi_cached_client import AWSCachedClient
from .logger import Logger

AWS_REGION = os.getenv("AWS_REGION", "us-east-1")

Expand Down