Workflow
The typical deployment workflow comprises one mandatory and two optional phases:
Create
/Invokean AWS Lambda function
- upload the application source code (the 'Deployment Package') – see the Upload File(s) action of the Amazon S3 Object task
- create a function – see the Create Function action of the AWS Lambda Function task
(optional) invoke the function – see the Invoke Function action of the AWS Lambda Function task
Tip title Custom Bamboo task This effectively comprises a custom Bamboo task, which allows you to implement arbitrary functionality running in AWS Lambda instead of a dedicated task.
(Optional) Create an AWS Lambda Event Source Mapping (pull event model)
- (optional) create an appropriate event source via AWS CloudFormation, e.g. an Amazon Kinesis stream or an Amazon DynamoDB table – see the Create Stack action of the AWS CloudFormation Stack task
create an event source mapping – see the Create Event Source Mapping action of the AWS Lambda Event Source Mapping task
Tip title Disable until tested Kinesis and DynamoDB streams can create a huge amount of events in a short time, so you might want to create an event source mapping in the Disabled state and update it to Enabled explicitly at a later stage once the deployment is properly tested. - (optional) update an event source mapping – see the Update Event Source Mapping action of the AWS Lambda Event Source Mapping task
- the event source mapping can be adjusted at any time during its lifetime, for example to enable/disable it during maintenance
Illustration of the Lambda pull event model
(Optional) Add/Permit an AWS Lambda Event Source (push event model)
- (optional) create an appropriate event source via AWS CloudFormation, e.g. an Amazon S3 bucket or an Amazon SNS topic – see the Create Stack action of the AWS CloudFormation Stack task
add appropriate permissions for the AWS resource to invoke the function – see the Add Permission action of the AWS Lambda Function task
- update the event source with an appropriate notification for the function, e.g. an Amazon SNS topic subscription – see the Update Stack action of the AWS CloudFormation Stack task
Illustration of the Lambda push event model
Frequently Asked Questions (FAQ)
Questionslist macro | ||||||||
---|---|---|---|---|---|---|---|---|
|