Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Current »

You can use the AWS Lambda Event Source Mapping task to create, update or delete an AWS Lambda event source mapping (see Deploying to AWS Lambda for an overview of the Lambda component lifecycle and deployment workflow).

Configuration

To configure an AWS Lambda Event Source Mapping task:

1. Navigate to the Tasks configuration tab for the job (this will be the default job if creating a new plan).

2. Click the name of an existing AWS Lambda Event Source Mapping task, or click Add Task and then AWS Lambda Event Source Mapping to create a new task.

3. Complete the following settings:

a. Common to all tasks

 Click here to expand...

Common (Bamboo)


Task Description (Optional) Identify the purpose of the task.
Disable this task

Check, or clear, to selectively run this task.

...Configure task/action specific parameters, see below ...
Bamboo Variables
NamespaceProvide the namespace for generated variables – defaults to custom.aws for backward compatibility.
Scope

Select the scope for generated variables – can be either Local (Variables will only be available in this job), or Result (Variables will be available in subsequent plan stages and deployment releases).

Common (AWS)


Action

Each task supports one or more actions depending on the target AWS resource. Select the desired action and configure the action specific parameters below.

RegionSelect the desired AWS Region. Alternatively, select [Use region variable ...] to supply the region dynamically via Bamboo variables (needs to be a region code such as ap-southeast-2) - refer to How to parametrize the AWS region via a Bamboo variable for details.
...Configure task/action specific parameters, see below ...
AWS Security Credentials
SourceSelect the source for the required AWS Security Credentials – can be either Inline, an IAM Role for EC2 or a shared Identity Federation for AWS Connector.
Connector(Conditional) Select the shared Identity Federation for AWS Connector. Alternatively, select [Use connector variable ...] to supply the connector dynamically via Bamboo variables (needs to be a connector id such as f24e81bc-7aff-42db-86a2-7cf82e24d871) - refer to How to parametrize the AWS connector via a Bamboo variable for details.

b. Actions supported by this task:

Create Event Source Mapping

Function Name

Specify the name or Amazon Resource Name (ARN) of the function to invoke for events on the source.

Event Source ARN

Specify the Amazon Resource Name (ARN) of the Kinesis or DynamoDB or SQS event source

Batch Size

Specify the maximum number of stream records that can be sent for a single function invocation.

Starting Position

Specify the position in the stream where Lambda should start reading.

Starting Position Timestamp

(Conditional) Specify timestamp of the data record from which to start reading.

Enabled

Check to let Lambda actively poll the stream. Clear to disable polling by Lambda.

Update Event Source Mapping


Event Source Mapping UUID

Specify the event source mapping identifier.

Function Name

see Create Event Source Mapping above

Batch Size

see Create Event Source Mapping above

Delete Event Source Mapping


Don't fail for non existing event source mapping

Check to not fail the build, if the event source mapping does not exist (anymore). Clear to trigger a build failure otherwise.

Event Source Mapping UUID

see Update Event Source Mapping above

Variables

All tasks support Bamboo Variable Substitution/Definition - this task's actions generate variables as follows:

A task's generated variables might get amended with respective AWS API additions over time - a live build log will always provide the most current variable shape accordingly

Create Event Source Mapping

Creating event source mapping for source arn:aws:kinesis:eu-west-1:288727192237:stream/TAWS-IT280-LES1-21-ubot-KinesisStream-149952K3HB58G and function TAWS-IT280-LES1-21-ubot:
Waiting for event source mapping 'bbfe6abd-0976-46c4-bc2e-b2d233738151' to reach state 'Disabled' ...
... current event source mapping state: Disabled
Event source mapping 'bbfe6abd-0976-46c4-bc2e-b2d233738151' reached desired state 'Disabled'
Creating common variables for 1 resources affected by task:
... bamboo.custom.aws.lambda.eventsourcemapping.resources: bbfe6abd-0976-46c4-bc2e-b2d233738151
Creating resource variables for event source mapping 'bbfe6abd-0976-46c4-bc2e-b2d233738151':
... bamboo.custom.aws.lambda.eventsourcemapping.resources.bbfe6abd-0976-46c4-bc2e-b2d233738151.UUID: bbfe6abd-0976-46c4-bc2e-b2d233738151
... bamboo.custom.aws.lambda.eventsourcemapping.resources.bbfe6abd-0976-46c4-bc2e-b2d233738151.EventSourceArn: arn:aws:kinesis:eu-west-1:288727192237:stream/TAWS-IT280-LES1-21-ubot-KinesisStream-149952K3HB58G
... bamboo.custom.aws.lambda.eventsourcemapping.resources.bbfe6abd-0976-46c4-bc2e-b2d233738151.FunctionArn: arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LES1-21-ubot
... bamboo.custom.aws.lambda.eventsourcemapping.resources.bbfe6abd-0976-46c4-bc2e-b2d233738151.BatchSize: 256
... bamboo.custom.aws.lambda.eventsourcemapping.resources.bbfe6abd-0976-46c4-bc2e-b2d233738151.LastProcessingResult: No records processed
... bamboo.custom.aws.lambda.eventsourcemapping.resources.bbfe6abd-0976-46c4-bc2e-b2d233738151.State: Disabled
... bamboo.custom.aws.lambda.eventsourcemapping.resources.bbfe6abd-0976-46c4-bc2e-b2d233738151.StateTransitionReason: User action
... bamboo.custom.aws.lambda.eventsourcemapping.resources.bbfe6abd-0976-46c4-bc2e-b2d233738151.LastModified: 2015-08-25T17:08.00.000Z
Creating common variables for first resource affected by task:
Creating resource variables for event source mapping 'bbfe6abd-0976-46c4-bc2e-b2d233738151':
... bamboo.custom.aws.lambda.eventsourcemapping.first.UUID: bbfe6abd-0976-46c4-bc2e-b2d233738151
... bamboo.custom.aws.lambda.eventsourcemapping.first.EventSourceArn: arn:aws:kinesis:eu-west-1:288727192237:stream/TAWS-IT280-LES1-21-ubot-KinesisStream-149952K3HB58G
... bamboo.custom.aws.lambda.eventsourcemapping.first.FunctionArn: arn:aws:lambda:eu-west-1:288727192237:function:TAWS-IT280-LES1-21-ubot
... bamboo.custom.aws.lambda.eventsourcemapping.first.BatchSize: 256
... bamboo.custom.aws.lambda.eventsourcemapping.first.LastProcessingResult: No records processed
... bamboo.custom.aws.lambda.eventsourcemapping.first.State: Disabled
... bamboo.custom.aws.lambda.eventsourcemapping.first.StateTransitionReason: User action
... bamboo.custom.aws.lambda.eventsourcemapping.first.LastModified: 2015-08-25T17:08.00.000Z

Update Event Source Mapping

See Create Event Source Mapping above.

Delete Event Source Mapping

N/A

How-to Articles

Frequently Asked Questions (FAQ)

Atlassian account required

Due to a regression within Questions for Confluence Cloud, you need to log in with your Atlassian ID (or sign up for a new account) to access these automatically curated FAQs (refer to UAA-312 for the background).

  • No labels