Category
Cedar language or syntax features/changes
Describe the feature you'd like to request
I have some Cedar policy files with multiple permit statements referring to the same principal condition, eg. principal in AWS::IDC::Group::"<some uuid>" // the xyz team. They're separated into multiple statements in order to provide more fine-grained @advice comments as well as sometimes to add extra conditions.
I'm wondering what the recommendation is for minimizing duplication of this group ID. It seems like it would be nice to be able to define a named binding somewhere, either in the same file or a standalone file, that could then be referred to by name in all these reference points, so the actual ID only need be spelled out once.
Describe alternatives you've considered
- Status quo: just duplicate the raw IDs everywhere they're needed.
- Introduce some preprocessing step to find-and-replace words like
@@@XYZ_GROUP@@@ with their value, but this introduces extra moving pieces/state that is undesirable.
Additional context
No response
Is this something that you'd be interested in working on?
Category
Cedar language or syntax features/changes
Describe the feature you'd like to request
I have some Cedar policy files with multiple
permitstatements referring to the same principal condition, eg.principal in AWS::IDC::Group::"<some uuid>" // the xyz team. They're separated into multiple statements in order to provide more fine-grained@advicecomments as well as sometimes to add extra conditions.I'm wondering what the recommendation is for minimizing duplication of this group ID. It seems like it would be nice to be able to define a named binding somewhere, either in the same file or a standalone file, that could then be referred to by name in all these reference points, so the actual ID only need be spelled out once.
Describe alternatives you've considered
@@@XYZ_GROUP@@@with their value, but this introduces extra moving pieces/state that is undesirable.Additional context
No response
Is this something that you'd be interested in working on?