Skip to content

Conversation

estolfo
Copy link
Contributor

@estolfo estolfo commented Oct 26, 2021

Steps to use these files to test lambda locally on mac os:

  1. install the aws sam cli
  2. From the testing directory, run docker run -it --rm -v "$PWD":/var/task lambci/lambda:build-ruby2.7 bash
  3. From inside the docker container, cd into functions/ruby and run bundle install --path vendor/bundle
  4. Exit the docker container and run sam build --use-container -t ../templates/template.yml
  5. Run sam local invoke --parameter-overrides ParameterKey=LayerArn,ParameterValue=<LAYER_ARN> ParameterKey=ApmServerURL,ParameterValue=<APM_SERVER_URL> ParameterKey=ApmSecretToken=<APM_SERVER_SECRET_TOKEN> ParameterKey=FunctionAndHandler,ParameterValue=<FunctionFileName.FunctionHandler>

@github-actions github-actions bot added the aws-λ-extension AWS Lambda Extension label Oct 26, 2021
@ghost
Copy link

ghost commented Oct 26, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-12-07T11:51:24.144+0000

  • Duration: 7 min 34 sec

  • Commit: 8fcf495

Test stats 🧪

Test Results
Failed 0
Passed 78
Skipped 0
Total 78

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@jlvoiseux jlvoiseux closed this Jan 24, 2022
@simitt simitt deleted the estolfo/sam-cli branch August 23, 2022 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aws-λ-extension AWS Lambda Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants