Skip to content

Deploy serverless apps to AWS from with a Docker Container (for when CI/CD doesn't have node)

Notifications You must be signed in to change notification settings

v-studios/sls_in_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README: Serverless Functions built/deployed by Docker

We want to rebuild one of our services (currently implemented as a set of Docker Compose containers) as a serverless app using AWS Lambda and API Gateway. We will use the Serverless Framework to package and deploy our app to AWS. Our CI/CD system, Bamboo-6.5.1, doesn't have nodejs on it so we cannot run serverless framework directly in Bamboo.

Our workaround is to build/package using Serverless Framework running in a container. That container will have a modern node verison installed, then install Serverless.

Our app itself will still be in Python.

Usage

Build the container from a node base and install Serverless Framework:

make build

Mount this directory and use Serverless Framework to build and deploy our app. We pass in our AWS_PROFILE name, and mount the AWS credentials file so it has permissions to deploy:

export AWS_PROFILE=wp-dev
make sls_deploy

About

Deploy serverless apps to AWS from with a Docker Container (for when CI/CD doesn't have node)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published