aws_cloudfront_origins: OriginGroup support custom originId #31468
Labels
@aws-cdk/aws-cloudfront-origins
Related to CloudFront Origins for the CDK CloudFront Library
closing-soon
This issue will automatically close in 4 days unless further comments are made.
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p3
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the feature
OriginGroup does not appear to support setting an explicit originId currently. The auto-generated ID is very long and hard to read. We would like to set the originId as with other origin types such as HttpOrigin or RestApiOrigin.
Use Case
Create easy to read origin IDs for Origin Groups so we can more easily understand the configuration when looking at it in the CloudFront console.
Proposed Solution
Add originId to OriginGroupProps.
I might be able to implement this; I'm not very familiar with CDK internals but it seems that wherever the auto-generated ID is created, it could instead use the explicit prop if set. I could use a little hint on where this happens.
Other Information
No response
Acknowledgements
CDK version used
2.158.0
Environment details (OS name and version, etc.)
macOS
The text was updated successfully, but these errors were encountered: