I have a python repo that has a script that parses my s3 data but its a lot of data to…
Jump to turn (7)
- 1I have a python repo that has a script that parses my s3 data but its a lot of d
- 2what zip file
- 3how do I run a python repo inside a lambda function that accesses data from S3
- 4I have data in S3 of the format: s3://stow-carbon-copy/BFI1/1410/2023-02-17/ s3:
- 5what would the format of the data from the response object
- 6In my case BFI1/1410/2023-02-17/ has a bunch of folders prefixed "pod\". how do
- 7I have data in S3 of the format: s3://stow-carbon-copy/BFI1/1410/2023-02-17/ s3:
- User
I have a python repo that has a script that parses my s3 data but its a lot of data to download and run the package locally. How can I create a lambda that can run the script from the repo on my s3 data?
- Assistant
To create a lambda function that can run the script from your repo on your S3 data, you can follow these steps:
- Create an IAM role with appropriate permissions to access your S3 bucket and execute the lambda function.
- Package your script and any required dependencies into a zip file.
- Create a new lambda function in the AWS console, and upload your zip file as the function code.
- Configure the lambda function to use the IAM role you created in step 1.
- Set the trigger for the lambda function to be an S3 bucket event.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.