(Python) is there an example of how to use data so...
# general
w
(Python) is there an example of how to use data sources in pulumi_aws? i'm getting coroutines back and not sure how to inspect their value e.g. if i have
Copy code
from pulumi_aws import secretsmanager

my_secret = secretsmanager.get_secret_version(secret_id="my-secret")
In aws terraform, I would normally be able to access the attribute
secret_string
on this data source. how do i access that here so that i can use it as an input to another resource and/or log it to console so that i can inspect the value and see that things are working as i expect?
b
w
@brainy-magician-83981 thanks, i did look at that, but again not sure how that works with data sources like in my example
trying to access
my_secret.secret_string
results in:
Copy code
AttributeError: 'coroutine' object has no attribute 'secret_string'