Configuration
To configure an AWS Lambda Layer 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 Layer task, or click Add Task and then AWS Lambda Layer to create a new task.
Complete the following settings:
Common to all tasks
Actions supported by this task:
Publish Layer Version
Layer Name Specify the layer name or ARN.
Compatible Runtimes Specify the compatible runtimes array (JSON – inline or via URL).
- Refer to AWS Lambda Runtimes for details.
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
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
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
Publish Layer Version
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
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)
Atlassian account required