Describe the bug
I am using the CrossZoneDelegation construct to delegate between 2 hosted Zones that are in different accounts. When I use the importedRoleStackSafeDefaultPolicyName feature flag the policy names that are generated that contain the path are targer than 128 characters which causes the stack to fail to deploy.
Expected Behavior
The policy names need to be trimmed to fit within 128 characters when using this feature flag.
Current Behavior
Adding the full construct path to the policy can lead to the polices becoming too to large.
Reproduction Steps
- Create a new stack with a long name
- Create a Hosted Zone in that account
- Create another stack with a long name
- Create a DNS delegation roles
- Create a Hosted Zone in another account
- Use CrossAccount Delegation between the hosted zones
- Enable the importedRoleStackSafeDefaultPolicyName feature flag
- Attempt to deploy
- Stack fails because of policy name being too long and containing the entire construct path.
Possible Solution
- Trim the policy name
- Find another uuid to generate default policy names instead of appending the construct path
Additional Information/Context
No response
CDK CLI Version
2.66.0
Framework Version
No response
Node.js Version
16
OS
Amazon Linux 2
Language
Typescript
Language Version
4.9.5
Other information
No response
Describe the bug
I am using the CrossZoneDelegation construct to delegate between 2 hosted Zones that are in different accounts. When I use the importedRoleStackSafeDefaultPolicyName feature flag the policy names that are generated that contain the path are targer than 128 characters which causes the stack to fail to deploy.
Expected Behavior
The policy names need to be trimmed to fit within 128 characters when using this feature flag.
Current Behavior
Adding the full construct path to the policy can lead to the polices becoming too to large.
Reproduction Steps
Possible Solution
Additional Information/Context
No response
CDK CLI Version
2.66.0
Framework Version
No response
Node.js Version
16
OS
Amazon Linux 2
Language
Typescript
Language Version
4.9.5
Other information
No response