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

Feature request: Publish AWS Lambda layers under /aws/service/list #3586

Closed
2 tasks done
avoidik opened this issue Jan 3, 2024 · 5 comments
Closed
2 tasks done

Feature request: Publish AWS Lambda layers under /aws/service/list #3586

avoidik opened this issue Jan 3, 2024 · 5 comments
Assignees
Labels
feature-request feature request layers Lambda Layers work

Comments

@avoidik
Copy link

avoidik commented Jan 3, 2024

Use case

I would like to be able to dynamically lookup the latest available AWS Lambda layer ARN.

Solution/User Experience

AWS has already been maintaining a list of public SSM parameters, please consider enlisting powertools-lambda-python too. Similar to ref. https://aws-sdk-pandas.readthedocs.io/en/latest/install.html#aws-lambda-layer

$ aws ssm get-parameters-by-path --path /aws/service/list
$ aws ssm describe-parameters --parameter-filters 'Key=Name, Option=BeginsWith, Values=/aws/service/aws-sdk-pandas/' --query 'sort_by(Parameters, &LastModifiedDate)'

Sample code

powertools_layer_arn = ssm.StringParameter.from_string_parameter_attributes(self, "MyValue",
  parameter_name="/aws/service/powertools-lambda-python/x.y.z/py3.xx/x86_64/layer-arn"
).string_value

Alternative solutions

Hardcoded Lambda layer ARN

Acknowledgment

@avoidik avoidik added feature-request feature request triage Pending triage from maintainers labels Jan 3, 2024
Copy link

boring-cyborg bot commented Jan 3, 2024

Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link

@leandrodamascena
Copy link
Contributor

Hello @avoidik! Thanks for opening this issue to add our Lambda layer in public parameters. This feature makes it easier to automate the use of the latest layer in customer's pipelines. However, we need to do some internal processes to add our layer to this list and I don't have an ETA for completing this as it involves other teams.

Starting tomorrow I will carry out these processes and as soon as I have an update I will let you know here.

Thank you.

@leandrodamascena leandrodamascena self-assigned this Jan 3, 2024
@leandrodamascena leandrodamascena added layers Lambda Layers work and removed triage Pending triage from maintainers labels Jan 3, 2024
@leandrodamascena leandrodamascena moved this from Triage to Backlog in Powertools for AWS Lambda (Python) Jan 3, 2024
@Dilski
Copy link

Dilski commented Jul 2, 2024

Just want to +1 this, it would make it a lot easier for us to keep our layers/dependencies up to date.

@sthulb
Copy link
Contributor

sthulb commented Dec 18, 2024

We have nearly completed work on this and will be available shortly.

@github-actions github-actions bot added the pending-release Fix or implementation already in dev waiting to be released label Dec 20, 2024
Copy link
Contributor

This is now released under 3.4.0 version!

@github-actions github-actions bot removed the pending-release Fix or implementation already in dev waiting to be released label Dec 20, 2024
@github-project-automation github-project-automation bot moved this from Working on it to Coming soon in Powertools for AWS Lambda (Python) Dec 20, 2024
@leandrodamascena leandrodamascena moved this from Coming soon to Shipped in Powertools for AWS Lambda (Python) Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request feature request layers Lambda Layers work
Projects
Status: Shipped
Development

No branches or pull requests

4 participants