LambdaInvoke - AWS CodePipeline

LambdaInvoke

When you create a condition, you can add the LambdaInvoke rule. This section provides a reference for the rule parameters. For more information about rules and conditions, see How do stage conditions work?.

You must have already created a function in Lambda as a separate resource.

Rule type

  • Category: Rule

  • Owner: AWS

  • Provider: LambdaInvoke

  • Version: 1

Configuration parameters

FunctionName

Required: Yes

The name of the Lambda function.

UserParameters

Required: No

These are parameters that are provided as input for the function in key-value pair format.

Example rule configuration

YAML
- name: MyLambdaRule ruleTypeId: category: Rule owner: AWS provider: LambdaInvoke version: '1' configuration: FunctionName: my-function inputArtifacts: - name: SourceArtifact region: us-east-1
JSON
[ { "name": "MyLambdaRule", "ruleTypeId": { "category": "Rule", "owner": "AWS", "provider": "LambdaInvoke", "version": "1" }, "configuration": { "FunctionName": "my-function" }, "inputArtifacts": [ { "name": "SourceArtifact" } ], "region": "us-east-1" } ]

The following related resources can help you as you work with this rule.