简体   繁体   中英

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?

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM