Stylistic question (that is maybe actually a Pytho...
# general
f
Stylistic question (that is maybe actually a Python question, but perhaps is more broadly applicable): when creating resources like IAM policy attachments, I like to create a descriptive name for the resource (the logical Pulumi resource, not the concrete AWS resource) like
"grant-<ROLE_NAME>-permissions-on-X"
. Resources don't expose their logical name directly, but do expose them (at least in Python) with a "private" property
_name
. The information seems to always be available (since Resource names are strings, and not
pulumi.Output[str]
, so it seems "safe" from that perspective, at least). Will I be sent to Programmer Jail for doing this? Is there any thought to formally exposing the logical resource name as an officially blessed read-only property that we can use to generate additional names (or is there already a way to do this that I've missed)? Thanks 🙇