I need to run aws-sam-cli within a docker container with a Ubuntu 20.04 base image but I am having trouble installing and running "docker" daemon into the container as "sam" depends on docker to be running. docker in docker (dind) won’t help as it only allows someone to start a container within a container. In ..
I’m trying to test my lambda using VS Code with the AWS SAM toolkit. Everything works find until I need to connect to an MSSQL Server. It works in the cloud. In order to access the SQL Server I have to connect to the VPN. I’m assuming there’s a way to configure docker network to ..
I’m new to AWS and attempting to build an API for a basic course scheduling app. I am currently able to get the API running locally and able to invoke two functions. Function 1 is executing properly, but function 2 seems to be executing the code from function 1. Here is how I have my ..
I’d like to write a python algo trading app. The app would consist of dockerized websocket listener for prices/orders streams and a set of strategies (functions or classes). The strategies are defined in lambdas and active instances are saved in a db (e. g. when prices drop below X buy this instrument and immediately place ..
I am developing a REST API with AWS Lambda, API Gateway, RDS (MySQL). I am using Node.js. I am also using AWS SAM tool. In my API I have lambda functions that accept URL parameters and that do not accept them. I noticed that I can deploy these to AWS without an issue, and then ..
I am using MacOS and have about 30GB space left on my device. When I try to build a Dockerfile via sam cli from aws, I receive the following error message: sam build ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device executor failed running [/bin/sh -c python3.8 ..
I am using AWS SAM to build my application and need to be able to test it locally. I was successful when recreating this blog post How to Deploy a Local Serverless Application With AWS SAM. When following the same steps on a different project, I run into errors. I created a docker network, docker ..
I want to deploy a pytorch model with aws sam. my folder structure looks as follows: ├── Dockerfile ├── __init__.py ├── app.py ├── models │ ├── common.py │ ├── experimental.py │ └── yolo.py ├── requirements.txt └── utils ├── autoanchor.py ├── datasets.py ├── general.py ├── google_utils.py ├── metrics.py ├── plots.py └── torch_utils.py As you can see, ..
Trying to build a docker based lambda using SAM and test it locally within a docker-compose, as the lambda needs to server other components built by the compose. Thing is, SAM itself runs in a container which means that I’m not clear on how to build that container within the docker-compose file and have it ..
I have two lambda functions. One calls an external endpoint and the other is a mock of that external endpoint for testing. My AWS SAM template.yaml looks like this: … Resources: ParentFunction: Type: AWS::Serverless::Function Properties: CodeUri: ParentFunction Handler: com.sample.parent.ParentHandler::handleRequest Runtime: java11 MemorySize: 512 Environment: Variables: externalurl: http://host.docker.internal:3000/mock Events: Parent: Type: Api Properties: Path: /parent Method: ..