aws / aws/aws-cdk

(edge-function): Ability to customise parameterNamePrefix

Open
#28,964 1 comment 1 reaction 0 assignees View on GitHub
@aws-cdk/aws-cloudfront effort/medium feature-request p3
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

Add ability to customise parameterNamePrefix on `cloudfront.experimental.EdgeFunction`

### Use Case

I would like the ability to customise the parameterNamePrefix when creating an EdgeFunction. This is useful when deploying to a stack with a strict permission boundary that is only able to access SSM Parameters with a certain prefix.

### Proposed Solution

Add `parameterNamePrefix` as optional prop with existing value as default (`cdk/EdgeFunctionArn`).

### Other Information

_No response_

### Acknowledgements

- [X] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.124.0 (build 4b6724c)

### Environment details (OS name and version, etc.)

MacOS 14.3

Contributor guide

Open the contributing guide

Research direction

Start at the cloudfront.experimental.EdgeFunction entry point and inspect its construct props and current parameterNamePrefix value. Add the optional customization while preserving cdk/EdgeFunctionArn as the default, then verify that both the custom prefix and existing default behavior are covered by the relevant EdgeFunction tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.