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 5 Current »

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:

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

 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.

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).

S3 Bucket
Specify the name of the S3 bucket where the layer content package is stored.
S3 KeySpecify 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 Numbersee Delete Layer Version above
Revision ID(Optional) Specify the policy revision ID.
Action

Specify the API action that grants access to the layer.

  • (info) This is required and defaulted with the only currently available action lambda:GetLayerVersion
Organization IDSpecify the organization ID to grant permission to all accounts in the specified organization.
PrincipalSpecify an account ID, or '*' to grant permission to all AWS accounts (or all within a given organization).
Statement IDSpecify 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 IDsee Add Layer Version Permission above
Statement IDsee 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

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