Custom names for API keys in API Gateway #7767
Labels
@aws-cdk/aws-apigateway
Related to Amazon API Gateway
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
Currently you can only create API keys with
api_key = api.add_api_key("foobar")
but the name/ID given in that call is not used. This is really inconvenient if you for example want to create multiple API keys for different users. You should be able to name themapikey-customer1
etc, instead they are now all calledmy-stack-2934209384
.Use Case
I have multiple systems calling my API and I want to have separate usage plans and API keys for them with sensible names. Sensible names help in managing the keys.
Proposed Solution
Most constructs take an optional
name
parameter which then overrides the CFN auto-generated name-hash. Same should be possible for API keys.This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: