aws / aws/chalice

Add Alias parameter or some more predictable pattern to function names

Open
#1,654 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

I have a pure lambda defined in my app that I would like another function to invoke conditionally
```
@app.lambda_function(name=NAME)
def some_func(payload_s: str, context: Any)
```

But when I go to invoke it, of course, I can't reliably find it, because the name has added a bunch of chalice stuff to it
`app-name-NAME-1C4XDPDWAKN3I`

Is there a way I dont know of to make this name easy to find? if not how could I go about aliasing this function? Would that be a new feature?

Contributor guide

Open the contributing guide

Research direction

Start by reading how Chalice currently derives names for functions declared with app.lambda_function(name=NAME), then review the AWS Lambda naming and alias behavior relevant to invocation. Done means the issue has a predictable way to find or alias the deployed function, with the behavior covered by tests or documented usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
backend, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.