Skip to content

Commit

Permalink
apply pre-commit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Nov 8, 2023
1 parent 0a6f64e commit 185065a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cdk-projects/s3io/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
from aws_cdk import App

from s3io.s3iotrigger_stack import S3ioTriggerStack
from s3iotrigger.s3iotrigger_stack import S3ioTriggerStack

app = App()
S3ioTriggerStack(app, "S3ioTriggerStack")
Expand Down
2 changes: 1 addition & 1 deletion cdk-projects/s3io/lambda/lambda_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def lambda_handler(event, context):
# input_file_key = event['Records'][0]['s3']['object']['key']

# Download input file -> file path should target s3 bucket file.
local_input_path = '/Users/moha907/projects/github-exago/cdk-projects/s3-io/lambda/python_wrapper'
local_input_path = 'output.txt'
s3_client.download_file(local_input_path)

# Process input file using ExaGO (assuming ExaGO processing logic here)
Expand Down
15 changes: 8 additions & 7 deletions cdk-projects/s3io/s3iotrigger/s3iotrigger_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
code=_lambda.DockerImageCode.from_ecr(repository=ecr_repository))
# create s3 bucket
s3 = _s3.Bucket(self, "s3bucket")

# Create an S3 bucket for input
input_bucket = s3.Bucket(self, "InputBucket",
# removal_policy=core.RemovalPolicy.DESTROY # Optional: specify removal policy
)
input_bucket = _s3.Bucket(self,
"InputBucket",
bucket_name="s3in1"
)

# Create an S3 bucket for output
output_bucket = s3.Bucket(self, "OutputBucket",
# removal_policy=core.RemovalPolicy.DESTROY # Optional: specify removal policy
)
output_bucket = _s3.Bucket(self,
"OutputBucket",
bucket_name="s3out1"
)

# create s3 notification for lambda function
notification = aws_s3_notifications.LambdaDestination(function)
Expand Down

0 comments on commit 185065a

Please sign in to comment.