nullstone-io / nullstone

Nullstone is a customizable developer platform launched on your cloud accounts.
https://nullstone.io
MIT License
39 stars 1 forks source link

292 Lambda support #10

Closed BSick7 closed 3 years ago

BSick7 commented 3 years ago

This PR implements the push/deploy provider for app/serverless => aws-lambda.

This also removes --image-tag CLI flag from push command. Instead, uses the --version CLI option.

BSick7 commented 3 years ago

Confirmed working:

$ nullstone push lambda-example dev --source=service.zip --version=0.1.0
Identifying infrastructure for app "lambda-example"
lambda arn: "arn:aws:lambda:us-east-1:522657839841:function:core-dev-lambda-example"
lambda name: "core-dev-lambda-example"
artifacts bucket: "lambda-example-artifacts-wnnmx"
Uploading service-0.1.0.zip to artifacts bucket
Upload complete

$ nullstone deploy lambda-example dev --version=0.1.0
Identifying infrastructure for app "lambda-example"
lambda arn: "arn:aws:lambda:us-east-1:522657839841:function:core-dev-lambda-example"
lambda name: "core-dev-lambda-example"
artifacts bucket: "lambda-example-artifacts-wnnmx"
Deploying app "lambda-example"
Updating app version to "0.1.0"
Updating lambda to "0.1.0"
Deployed app "lambda-example"