Skip to content

Publish Lambda Layer ARN publicly across all regions instead of SAR App #216

Closed

Description

@ecolban

What were you trying to accomplish?

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Environment

  • Powertools version used:
  • Packaging format (Layers, PyPi):
  • AWS Lambda function runtime:
  • Debugging logs

How to enable debug mode**

# paste logs here

Activity

  1. added
    bugSomething isn't working
    triagePending triage from maintainers
    on Nov 23, 2020
  2. mwarkentin commented on Nov 24, 2020

    @mwarkentin

    Is this actually an issue? You can install the app from any region while referencing eu-west-1.

  3. ecolban commented on Nov 24, 2020

    @ecolban
    Author

    It is not a bug, but a desired feature that is missing.

    I can install it, but when deploying a lambda function, I cannot reference the layer by its ARN. Lambda requires the layer to be in the same region. If I'm not using SAM, the alternative is to pip install it locally and build a layer from the installed packages. It would be very nice if there were an ARN for each region. I also had problems finding the version.

  4. Nr18 commented on Nov 24, 2020

    @Nr18

    @ecolban do you mind adding that context to the description of the issue? That would make it easier to understand the request that you have. In general, an issue that is clear of what you expect and what you considered etc is more likely to get resolved more quickly.

  5. added and removed
    bugSomething isn't working
    triagePending triage from maintainers
    on Nov 24, 2020
  6. heitorlessa commented on Nov 24, 2020

    @heitorlessa
    Contributor

    Hey @ecolban, if I'm understanding you correctly, you want AWS to publish Lambda Layer ARNs for all AWS regions so that you can consume them directly instead of deploying a SAR App - Did I get this right?

    For example: arn:aws:lambda:<Region>:<AccountId>:layer:aws-lambda-powertools:<Version>

    If that's the case, we won't be able to do that at this stage until Lambda Layers support Aliases or any mechanism in which we could honour semantic versioning to match what's on PyPi - Please reach out to your AWS representative for this feature, or AWS Developer Advocates using #awswishlist on Twitter.

    That is why we chose SAR as a distribution mechanism because it supports semantic versioning and we can match SAR App with what's on our source of truth (PyPi). The SAR App is distributed globally despite the region prefix, and it deploys a Lambda Layer in the region of your choosing, which you can then ref in your favourite deployment framework.

    PS: I've changed from bug to feature request

    Thanks.

  7. ecolban commented on Nov 28, 2020

    @ecolban
    Author

    Yes, I agree it should be a feature request and not a bug. Note that I found a layer ARN here, but I would have preferred it being provided by you.

  8. removed
    need-customer-feedbackRequires more customers feedback before making or revisiting a decision
    on Nov 28, 2020
  9. changed the title [-]Layer exists only for eu-west-1. No layer for other regions[/-] [+]Publish Lambda Layer ARN publicly across all regions[/+] on Jan 13, 2021
  10. changed the title [-]Publish Lambda Layer ARN publicly across all regions[/-] [+]Publish Lambda Layer ARN publicly across all regions instead of SAR App[/+] on Mar 3, 2021
  11. locked and limited conversation to collaborators on Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions