Using the AWS Lambda Layer task in Bamboo

You can use the AWS Lambda Layer task to publish, delete, or entitle an AWS Lambda layer (see Deploying to AWS Lambda for an overview of the Lambda component lifecycle and deployment workflow).

 

Configuration

To configure an AWS Lambda Layer 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 Layer task, or click Add Task and then AWS Lambda Layer to create a new task.

3. Complete the following settings:

a. Common to all tasks

b. Actions supported by this task:

Publish Layer Version

 

Publish Layer Version

 

Layer Name

Specify the layer name or ARN.

Compatible Runtimes

Specify the compatible runtimes array (JSON – inline or via URL).

S3 Bucket

Specify the name of the S3 bucket where the layer content package is stored.

S3 Key

Specify the layer content package's S3 object key.

S3 Object Version

(Optional) Specify the layer content package's S3 object version.

Description

(Optional) Specify the description of the version.

License Info

(Optional) Specify the layers software license.

Delete Layer Version

 

Layer Name 

see Publish Layer Version above

Version Number 

Specify the layers version number.

Add Layer Version Permission



Layer Name

see Publish Layer Version above

Version Number

see Delete Layer Version above

Revision ID

(Optional) Specify the policy revision ID.

Action

Specify the API action that grants access to the layer.

  •  This is required and defaulted with the only currently available action lambda:GetLayerVersion

Organization ID

Specify the organization ID to grant permission to all accounts in the specified organization.

Principal

Specify an account ID, or '*' to grant permission to all AWS accounts (or all within a given organization).

Statement ID

Specify an identifier that distinguishes the policy from others on the same layer version..

Remove Layer Version Permission



Layer Name

see Publish Layer Version above

Version Number

see Delete Layer Version above

Revision ID

see Add Layer Version Permission above

Statement ID

see Add Layer Version Permission above

 

Variables

Publish Layer Version

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Creating common variables for 1 resources affected by task: ... bamboo.custom.aws.lambda.layer.resources: arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1 Creating resource variables for published layer 'arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1': ... bamboo.custom.aws.lambda.layer.resources.arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1.LayerArn: arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1 ... bamboo.custom.aws.lambda.layer.resources.arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1.Description: Sample layer published via Bamboo build TAWS-IT2200-LFCP35-23 ... bamboo.custom.aws.lambda.layer.resources.arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1.LicenseInfo: null ... bamboo.custom.aws.lambda.layer.resources.arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1.Version: 1 ... bamboo.custom.aws.lambda.layer.resources.arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1.LayerVersionArn: arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1:1 ... bamboo.custom.aws.lambda.layer.resources.arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1.CreatedDate: 2020-06-24T17:49:34.799+0000 Creating common variables for first resource affected by task: Creating resource variables for published layer 'arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1': ... bamboo.custom.aws.lambda.layer.first.LayerArn: arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1 ... bamboo.custom.aws.lambda.layer.first.Description: Sample layer published via Bamboo build TAWS-IT2200-LFCP35-23 ... bamboo.custom.aws.lambda.layer.first.LicenseInfo: null ... bamboo.custom.aws.lambda.layer.first.Version: 1 ... bamboo.custom.aws.lambda.layer.first.LayerVersionArn: arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1:1 ... bamboo.custom.aws.lambda.layer.first.CreatedDate: 2020-06-24T17:49:34.799+0000

Delete Layer Version

N/A

Add Layer Version Permission

1 2 3 Creating add layer permission result variables for layer 'TAWS-IT2200-LFCP35-23-ubot-layer-1': ... bamboo.custom.aws.lambda.layer.policy.Statement: {"Sid":"TAWS-IT2200-LFCP35-23","Effect":"Allow","Principal":"*","Action":"lambda:GetLayerVersion","Resource":"arn:aws:lambda:us-east-1:288727192237:layer:TAWS-IT2200-LFCP35-23-ubot-layer-1:1"} ... bamboo.custom.aws.lambda.layer.policy.RevisionId: f4fe809f-991f-4291-b129-078c39349401

Remove Layer Version Permission

N/A

How-to Articles

Frequently Asked Questions (FAQ)