Open schnipseljagd opened 1 year ago
Hey @schnipseljagd. Thanks for bringing up this issue! I agree that we should truncate.
This is similar to https://github.com/pulumi/pulumi-cdk/issues/62. This issue hits the error in AWS Native, the other hits it in AWS Classic. I think in both cases, we might actually want to change the behaviour of autonaming in those providers (and all providers) to not hard fail here.
Good catch that the underlying problem is from AWS native! I'll move this over to the bridge. We can set up some logic to truncate over-long autonames.
What happened?
I've been trying to use CrossAccountZoneDelegationRecord and adapted the example slightly to work with the pulumi cdk.
created the following error:
roleName
is always autogenerated by the cdk lib here so I can't provide it myself.Expected Behavior
Probably Pulumi should truncate the name and make sure it's still unique.
Steps to reproduce
use this snippet and maybe replace
my-domain.de
andaccount: '999999999'
with real values:Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).