Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(aws/lambda): Add update lambda stage. #2940

Merged
merged 9 commits into from
May 28, 2019

Conversation

andrewbackes
Copy link
Member

@andrewbackes andrewbackes commented May 28, 2019

CRUD operations for lambdas are already available in Clouddriver here. This stage allows users access to the update lambda operation from within a pipeline.

Usage

After you have Lambda enabled in Clouddriver, you can hit Orca with something like:

curl -X POST \
  http://localhost:8083/orchestrate \
  -H 'Content-Type: application/json' \
  -d '
  {
      "application": "myapp",
      "description": "updateLambda Test",
      "stages": [
        {
            "type": "updateLambdaFunction",
            "region": "us-west-2",
            "functionName": "arn:aws:lambda:us-west-2:<acct>:function:<function-name>",
            "description": "sample",
            "credentials": "aws-acct",
            "handler": "lambda_function.lambda_handler",
            "memory": 512,
            "role": "arn:aws:iam::<acctno>:role/service-role/test",
            "runtime": "python3.6",
            "timeout": "68",
            "tags": [{"key":"value"}]
        }
      ] 
  }
'

Edit: Added usage instructions

@asher asher merged commit 8b36fcd into spinnaker:master May 28, 2019
@andrewbackes andrewbackes deleted the lambda-stage branch May 28, 2019 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants