Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add layer_arn function. #442

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Add layer_arn function. #442

merged 1 commit into from
Jan 7, 2025

Conversation

fujiwara
Copy link
Owner

resolve lambda layer arn.

Resolve Lambda layer ARN

The layer_arn template/Jsonnet function resolves the Lambda layer ARN.

{
  "Layers": [
    "{{ layer_arn `my-layer` `latest` }}"
  ]
}
local layer_arn = std.native('layer_arn');
{
  Layers: [
    layer_arn('my-layer', 'latest'),
  ],
}

The layer_arn function takes two string arguments: LayerName and Version.

  • LayerName is the name of the Lambda layer.
  • Version is the version of the Lambda layer. If Version is empty or latest, the latest version is used. Otherwise, the specified version is used.

resolve lambda layer arn.
@fujiwara fujiwara merged commit f8f8154 into v1 Jan 7, 2025
6 checks passed
@fujiwara fujiwara deleted the layer_arn-func branch January 7, 2025 08:04
@github-actions github-actions bot mentioned this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant