I'm not sure if this is a bug so i'll ask - I get ...
# aws
b
I'm not sure if this is a bug so i'll ask - I get this error:
Copy code
aws:lb:TargetGroup (sample-full-dev-retool-tg):
    error: aws:lb/targetGroup:TargetGroup resource 'sample-full-dev-retool-tg' has a problem: "name" cannot be longer than 32 characters
(you see the "name" is only 25 characters long... is this a bug?)
👀 1
g
Are you setting an explicit
name
property or using Pulumi's auto-naming functionality?
b
in this case it looks like auto-naming
that might be it (d'oh)
l
The "name" parameter to the target group constructor is not the same as the name of the target group. There is a parameter in the args for that.
1
You can use
name: name
in the args to turn off autonaming, or use
namePrefix: somethingShort6OrFewerChars
to get a bit of both.
g
The error message could definitely be better here. :)
b
I don't disagree with you @gentle-diamond-70147 🙂
g
I'll open an issue for that. 👍
Opened https://github.com/pulumi/pulumi-aws/issues/1317 for a better error message.