- unmigrated-wiki-markup
Documentation for Tasks for AWS 2.8 – other releases are available in the Tasks for AWS Documentation Directory.
View
or visit the current documentation home.
Using the AWS Lambda Function task in Bamboo
You can use the AWS Lambda Function task to create, update, delete, invoke or entitle an AWS Lambda function (see Deploying to AWS Lambda for an overview of the Lambda component lifecycle and deployment workflow).
Configuration
To configure an AWS Lambda Function task:
Navigate to the Tasks configuration tab for the job (this will be the default job if creating a new plan).
Click the name of an existing AWS Lambda Function task, or click Add Task and then AWS Lambda Function to create a new task.
Complete the following settings:
Common to all tasks
Actions supported by this task:
Variables
All tasks support Bamboo Variable Substitution/Definition - this task's actions generate variables as follows:
Create Function
Creating common variables for 1 resources affected by task:
... custom.aws.lambda.function.resources: arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot
Creating resource variables for function 'arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot':
... custom.aws.lambda.function.resources.arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot.FunctionArn: arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot
... custom.aws.lambda.function.resources.arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot.FunctionName: TAWS-IT280-LF1-21-ubot
... custom.aws.lambda.function.resources.arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot.Description:
... custom.aws.lambda.function.resources.arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot.Runtime: nodejs
... custom.aws.lambda.function.resources.arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot.Handler: index.handler
... custom.aws.lambda.function.resources.arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot.Role: arn:aws:iam::288727192237:role/aws-lambda-basic-execution
... custom.aws.lambda.function.resources.arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot.MemorySize: 128
... custom.aws.lambda.function.resources.arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot.Timeout: 2
... custom.aws.lambda.function.resources.arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot.CodeSize: 499
... custom.aws.lambda.function.resources.arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot.LastModified: 2015-08-25T17:07:47.960+0000
Creating common variables for first resource affected by task:
Creating resource variables for function 'arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot':
... custom.aws.lambda.function.first.FunctionArn: arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot
... custom.aws.lambda.function.first.FunctionName: TAWS-IT280-LF1-21-ubot
... custom.aws.lambda.function.first.Description:
... custom.aws.lambda.function.first.Runtime: nodejs
... custom.aws.lambda.function.first.Handler: index.handler
... custom.aws.lambda.function.first.Role: arn:aws:iam::288727192237:role/aws-lambda-basic-execution
... custom.aws.lambda.function.first.MemorySize: 128
... custom.aws.lambda.function.first.Timeout: 2
... custom.aws.lambda.function.first.CodeSize: 499
... custom.aws.lambda.function.first.LastModified: 2015-08-25T17:07:47.960+0000Update Function Code
See Create above.
Update Function Configuration
See Create above.
Delete Function
N/A
Invoke Function
Creating invocation result variables for function 'TAWS-IT280-LF1-21-ubot':
... custom.aws.lambda.function.result.FunctionError: null
... custom.aws.lambda.function.result.LogResult: null
... custom.aws.lambda.function.result.Payload:
... custom.aws.lambda.function.result.StatusCode: 200
Add Permission
Creating add permission result variables for function 'TAWS-IT280-LF1-21-ubot':
... custom.aws.lambda.function.policy.Statement: {"Condition":{"ArnLike":{"AWS:SourceArn":"arn:aws:s3:::taws-it280-21-ubot"}},"Action":["lambda:InvokeFunction"],"Resource":"arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LF1-21-ubot","Effect":"Allow","Principal":{"Service":"s3.amazonaws.com"},"Sid":"TAWS-IT280-LF1-21"}
Remove Permission
N/A
How-to Articles
-
Questions:
-
-
Questions: