Skip to content

Feature request: SSM parameters to look up layer ARNs #3439

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

Closed
2 tasks done
sthulb opened this issue Dec 20, 2024 · 3 comments · Fixed by #3577 or #3585
Closed
2 tasks done

Feature request: SSM parameters to look up layer ARNs #3439

sthulb opened this issue Dec 20, 2024 · 3 comments · Fixed by #3577 or #3585
Assignees
Labels
completed This item is complete and has been merged/shipped feature-request This item refers to a feature request for an existing or new utility layers Items related to the Lambda Layers pipeline

Comments

@sthulb
Copy link
Contributor

sthulb commented Dec 20, 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

@sthulb sthulb added feature-request This item refers to a feature request for an existing or new utility triage This item has not been triaged by a maintainer, please wait labels Dec 20, 2024
@sthulb sthulb changed the title Feature request: TITLE Feature request: SSM parameters to look up layer ARNs Dec 20, 2024
@dreamorosi dreamorosi moved this from Triage to Working on it in Powertools for AWS Lambda (TypeScript) Dec 20, 2024
@dreamorosi dreamorosi added confirmed The scope is clear, ready for implementation layers Items related to the Lambda Layers pipeline and removed triage This item has not been triaged by a maintainer, please wait labels Dec 20, 2024
@dreamorosi dreamorosi moved this from Working on it to On hold in Powertools for AWS Lambda (TypeScript) Jan 22, 2025
@dreamorosi dreamorosi linked a pull request Feb 10, 2025 that will close this issue
@github-project-automation github-project-automation bot moved this from On hold to Coming soon in Powertools for AWS Lambda (TypeScript) Feb 10, 2025
Copy link
Contributor

⚠️ COMMENT VISIBILITY WARNING ⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

@github-actions github-actions bot added pending-release This item has been merged and will be released soon and removed confirmed The scope is clear, ready for implementation labels Feb 10, 2025
@dreamorosi dreamorosi reopened this Feb 11, 2025
@github-project-automation github-project-automation bot moved this from Coming soon to Pending review in Powertools for AWS Lambda (TypeScript) Feb 11, 2025
@dreamorosi dreamorosi linked a pull request Feb 11, 2025 that will close this issue
@github-project-automation github-project-automation bot moved this from Pending review to Coming soon in Powertools for AWS Lambda (TypeScript) Feb 11, 2025
Copy link
Contributor

⚠️ COMMENT VISIBILITY WARNING ⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

Copy link
Contributor

This is now released under v2.14.0 version!

@github-actions github-actions bot added completed This item is complete and has been merged/shipped and removed pending-release This item has been merged and will be released soon labels Feb 11, 2025
@dreamorosi dreamorosi moved this from Coming soon to Shipped in Powertools for AWS Lambda (TypeScript) Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed This item is complete and has been merged/shipped feature-request This item refers to a feature request for an existing or new utility layers Items related to the Lambda Layers pipeline
Projects
2 participants