Sergio Nevio
Sergio Nevio

Reputation: 3

Amazon CLI parallel deployment

We build package that contains around 13 amazon lambda handlers [java]. Package is build using maven. When functions are deployed manually - we might upload same jar that includes dependencies and handlers multiple times specifying just different handler name. Functions share dependencies so this makes sense for us.

Can we run amazon CLI in parallel for faster deployment?

Upvotes: 0

Views: 111

Answers (2)

jarmod
jarmod

Reputation: 78842

Perhaps you could upload the JAR to S3 once, and then have a Lambda function, triggered by that upload, written in JavaScript do async code deployments from S3 to your Lambda functions. For example, see the Lambda Auto-Deployer at New Deployment Options for AWS Lambda.

Upvotes: 1

Adil B
Adil B

Reputation: 16846

Yes - you should consider writing a bash or python deployment script that calls the AWS CLI upload commands in parallel. Then, you should be able to deploy all thirteen of your Lambda handlers at the same time.

Upvotes: 1

Related Questions