copy jar code and call lambda from lacal
I have a maven project to sync a changesets on my databases in different environments via a lambda function.
after I add my DB changeset on the file
- run mvn package
- copy the generated .jar on my lambda
- run the lambda(for local DB) to reflect new changes on the DB.
loclly those steps are manual, so I run the lambda against my local DB to make sure everything is ok before pushing the changes in my repo to reflect the changes automatically in others env.
I would like to automate those 3 steps locally so I don't do them manually each time I have to make a change in my DB.
In other env those steps are automated via the BuildSpec file.
I would like to know if there is a best way to automate them in local (script ? ... buid the project mvn, copy the jar, run the lambda, get response from lambda...)
Hi there, yes similar to the BuildSpec file, in local you can create a script or along with a cron job that run these tasks automatically. In your script you can run build commends or invoke another build script, invoke lambda via AWS CLI, and parse the response to do whatever actions needed.
Call a redshift stored procedure with dynamic parameter from boto3 lambdaAccepted Answerasked 3 months ago
Transfer files (1GB to 2G) from web url to S3 on a scheduleAccepted Answerasked 3 years ago
My Lambda function is not getting invoked all of a sudden.asked 3 months ago
How to Use CodeBuild and CodeDeploy to Deploy Lambda to Different Environments
Lambda Deployment - Do you have to set the TargetVersion?
How to handle failed lambda functionsasked 3 months ago
Can lambda know the specific attribute which changed in the dynamo db table update, when a lambda is triggered by dynamo db table update item??asked 4 months ago
Looking for Node.js examples to post to Aurora Postgresql via LambdaAccepted Answerasked 3 years ago
Sync between publish and subscribe to iot topic in AWS Lambdaasked 5 months ago
copy jar code and call lambda from lacalasked a month ago