Im using serverless framework to try to implement AWS Step functions. I have the Lambda functions running correctly. These are packaged in a .jar
and I've manually uploaded to AWS s3.
I then have point to this .jar
path on s3 in my serverless.yaml
file:
service: serverless-card-issue
package:
artifact: https://s3.amazonaws.com/integration-builds/serverless/HelloWorldFunction-1.0-SNAPSHOT.jar
I run:
sls deploy --stage integration-beta
This then takes 10-15 minutes to complete - far too long. In the logs I see:
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Packaging service...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service HelloWorldFunction-1.0-SNAPSHOT.jar file to S3 (72.14 MB)...
Firstly, I have no idea how it's locating the HelloWorldFunction-1.0-SNAPSHOT.jar
file locally - it's in a completely different directory.
Secondly, I do NOT want serverless to upload any .jar
- it's already on s3.
How can I do this?