05/18/2021, 3:07 PM
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
. Resources don't expose their logical name directly, but do expose them (at least in Python) with a "private" property
. The information seems to always be available (since Resource names are strings, and not
, 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 🙇