Skip to content

aws_cloudfront_origins: OriginGroup support custom originId #31468

Open
@vobarian

Description

@vobarian

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

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.158.0

Environment details (OS name and version, etc.)

macOS

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-cloudfront-originsRelated to CloudFront Origins for the CDK CloudFront Libraryclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p3

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions